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

RequireJS example doesn't work #23

Closed
iMoses opened this issue Jul 2, 2015 · 3 comments
Closed

RequireJS example doesn't work #23

iMoses opened this issue Jul 2, 2015 · 3 comments

Comments

@iMoses
Copy link

iMoses commented Jul 2, 2015

It happens because this piece of code in injected into common.js and reaches the client.

// Create a simple path alias to allow browserify to resolve
// the runtime on a supported path.
module.exports = require('./dist/cjs/handlebars.runtime');

Error:

Uncaught ReferenceError: module is not defined(anonymous function) @ common.js:6658
@ingiulio
Copy link
Contributor

ingiulio commented Jul 2, 2015

@iMoses yes I get the same error. I can't figure out a solution right away, but I'll look into it.
Thanks for bringing it up!

@crwang
Copy link
Member

crwang commented Aug 20, 2015

Closing this as it has been fixed.

@crwang crwang closed this as completed Aug 20, 2015
@alexindigo
Copy link
Member

Awesome. Thanks :)

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

4 participants