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

require is not defined #69

Closed
tomitrescak opened this issue Oct 5, 2015 · 2 comments
Closed

require is not defined #69

tomitrescak opened this issue Oct 5, 2015 · 2 comments

Comments

@tomitrescak
Copy link

Hi, I'm trying to upgrade my project to the latest version from master, but all my project end up with the same error:

W20151005-18:35:26.190(11)? (STDERR) /Users/tomi/.meteor/packages/meteor-tool/.1.1.9.15i59m2++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79
W20151005-18:35:26.190(11)? (STDERR)       obj.forEach(iterator, context);
W20151005-18:35:26.190(11)? (STDERR)           ^
W20151005-18:35:26.190(11)? (STDERR) ReferenceError: require is not defined

Any idea what can be causing this?

Thanks!

@tomitrescak
Copy link
Author

I did not solve it systematically ... instead with a brute force but downloading a clean version from master and copying everything back again ;) Took a while, but all works now. No idea though what it was. Nevermind. Gonna close it.

@jedwards1211
Copy link
Owner

Yeah, I saw this error before. I made a big change for the server-side source maps: in dev mode, it Npm.requires in the server bundle. In prod mode, it puts var require = Npm.require; at the start of the bundle, so that built-in node modules can be required.

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