Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting require(...) is undefined error #548

Closed
sunpietro opened this issue Dec 29, 2015 · 1 comment
Closed

Getting require(...) is undefined error #548

sunpietro opened this issue Dec 29, 2015 · 1 comment

Comments

@sunpietro
Copy link

When I added the blanket.js script into the test HTML file, just like this:

<!doctype html>
<html>
<head>
    <title>Taggify tests</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
</head>
<body>
    <div class="taggify"></div>
    <div id="mocha"></div>
    <div id="messages"></div>
    <div id="fixtures"></div>

    <script src="../node_modules/mocha/mocha.js"></script>
    <script src="../node_modules/mocha/mocha.js"></script>
    <script
        src="../node_modules/blanket/dist/qunit/blanket.js"
        data-cover-adapter="../node_modules/blanket/dist/mocha/blanket_mocha.js"></script>
    <script src="../node_modules/chai/chai.js"></script>
    <script src="../node_modules/chai-dom/chai-dom.js"></script>
    <script src="../taggify.js" data-cover></script>

    <script>
        mocha.setup('bdd');
        mocha.reporter('html');
    </script>
    <script src="taggify-tests.js"></script>
    <script>
      mocha.checkLeaks();
      mocha.globals(['Taggify']);
      mocha.run();
    </script>
</body>
</html>

I'm getting error: TypeError: require(...) is undefined [blanket.js:29:13]
I'm wondering what I did wrong?

@oskwazir
Copy link

See #541 the problem you're having is probably related to the code in the /dist/ folder is not ready to be executed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants