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

Failure to load modules #1

Open
kokujin opened this issue Aug 4, 2013 · 0 comments
Open

Failure to load modules #1

kokujin opened this issue Aug 4, 2013 · 0 comments

Comments

@kokujin
Copy link

kokujin commented Aug 4, 2013

I tried the loader out, it did not load my test module as expected, I get this error:

Error: Cannot find module "mod"
throw new Error('Cannot find module "' + name + '"');

Here is the code for the quick test I did:
http://pastie.org/8205657

Any idea what I am doing wrong? Thanks!

<script src="common.js"></script> <script> var foo = require('mod'); foo.test(); </script>

// mod,js
module.exports = {'test': function(){console.log('testing loader')}}

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

1 participant