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

Source-map error with requirejs #989

Closed
SteppeEagle opened this issue Mar 30, 2015 · 4 comments
Closed

Source-map error with requirejs #989

SteppeEagle opened this issue Mar 30, 2015 · 4 comments

Comments

@SteppeEagle
Copy link

In version > 3.0.0, i get error:

Error: Module name "source-map" has not been loaded yet for context: _. Use require([])
http://requirejs.org/docs/errors.html#notloaded
    at makeError (require.js:166)
    at Object.localRequire [as require] (require.js:1400)
    at requirejs (require.js:1745)
    at handlebars.js:2459
    at handlebars.js:2610
    at Object.context.execCb (require.js:1658)
    at Object.Module.check (require.js:869)
    at Object.Module.enable (require.js:1151)
    at Object.Module.init (require.js:782)
    at callGetModule (require.js:1178)

but in vertion 2.0.0 - all fine.

I see in code (at handlebars.js:2459 - v.3.0.1) require call:
var SourceMap = require('source-map'),

i think it's incorrect use and this error linked with issue #902

kpdecker added a commit that referenced this issue Apr 8, 2015
@kpdecker
Copy link
Collaborator

kpdecker commented Apr 8, 2015

This is another artifact of trying to fight all of the module systems in javascript. I believe we can hack around this by not requiring this module under AMD. Additionally, I've added test coverage to ensure that we don't get his with this again.

@kpdecker
Copy link
Collaborator

Released in 3.0.2

@vxpert
Copy link

vxpert commented May 18, 2015

i am using 3.0.3 and still facing the same issue.. i am using handlebar with dojo mvc app

@kpdecker
Copy link
Collaborator

@vxpert which build file are you linking to?

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

3 participants