Hi all
I get an “Uncaught ReferenceError: require is not defined” error after installing angular in an (upgraded form 1.2.1) Meteor 1.3 project. SO question is:
Ideas?
Hi all
I get an “Uncaught ReferenceError: require is not defined” error after installing angular in an (upgraded form 1.2.1) Meteor 1.3 project. SO question is:
Ideas?
Do you have the ecmascript
or modules
packages installed?
Angular makes you uninstall ecmascript
and install babel instead. However, I installed modules, and this error went away. Unfortunately I got another error: ReferenceError: version is not defined
W20160408-15:28:15.748(-5)? (STDERR) C:\Users\me\AppData\Local\.meteor\packages\meteor-tool\1.3.1\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\fibers\future.js:245
W20160408-15:28:15.748(-5)? (STDERR) throw(ex);
W20160408-15:28:15.748(-5)? (STDERR) ^
W20160408-15:28:15.748(-5)? (STDERR) ReferenceError: version is not defined
W20160408-15:28:15.748(-5)? (STDERR) at meteorInstall.server.api.v1.stuff.js (app\app.js:457:11)
W20160408-15:28:15.749(-5)? (STDERR) at fileEvaluate (packages\modules-runtime.js:158:9)
W20160408-15:28:15.749(-5)? (STDERR) at require (packages\modules-runtime.js:92:16)
W20160408-15:28:15.749(-5)? (STDERR) at app\app.js:3212:1
W20160408-15:28:15.749(-5)? (STDERR) at C:\xampp\htdocs\mm\.meteor\local\build\programs\server\boot.js:283:10
W20160408-15:28:15.749(-5)? (STDERR) at Array.forEach (native)
W20160408-15:28:15.749(-5)? (STDERR) at Function._.each._.forEach (C:\Users\me\AppData\Local\.meteor\packages\meteor-tool\1.3.1\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\underscore\underscore.js:79:11)
W20160408-15:28:15.749(-5)? (STDERR) at C:\xampp\htdocs\mm\.meteor\local\build\programs\server\boot.js:133:5
Any idea what might be wrong?
Adding the modules package via meteor add modules
got rid of this error. Unfortunately, now I am bumping against this one Using npm on Meteor 1.3 + angular1 (bump!)
Make sure you have the angular@1.3.9 installed (i’m referring to the meteor package, not in package.js). I had this problem, and I think that upgrading to that version fixed it. It didn’t do it automatically.