Closed lacymorrow closed 8 years ago
I'll tinker and try the npm method, my app also uses the fs module, could be getting race conditions.
NPM method:
$ electrify package
INFO electrify:index: initializing
INFO electrify:plugins: use mongodb
INFO electrify:plugins: use nodejs
module.js:338
throw err;
^
Error: Cannot find module './package.json'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/usr/local/lib/node_modules/electrify/bin/cli.js:11:12)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
Hi @lacymorrow, this happens only when packaging the app? When you're just running meteor everything goes fine?
Also, can you tell me if the same occurs with a simple meteor project?
meteor create --example leaderboard
cd leaderboard
meteor remove-platform ios android
meteor add arboleya:electrify
meteor
Yes, this is the normal output. Very awkward behavior tough.
I'm working on some improvements, I'll let you know so you can do more tests.
One last question, have you tried to build your project with Meteor alone? It worked?
yep, seems to build properly
I have the same issue packaging, but my app runs fine. Same OS
update: same error on my linux machine, and I get the same error packaging the leaderboard and todos example projects
same error here as well
Same issue on 64 bit windows
Should be fixed in 2.0.0
, please update and try again.
In case the problem persists, please re-open.
Worked like a charm! Thanks @arboleya