arboleya / electrify

Package your Meteor apps with Electron, and butter
MIT License
247 stars 52 forks source link

fs.js issue while bundling; OSX: Yosimite #18

Closed lacymorrow closed 8 years ago

lacymorrow commented 8 years ago
I20151009-17:54:03.332(-4)? INFO  electrify:app:  bundling meteor
W20151009-17:54:03.597(-4)? (STDERR) fs.js:439
W20151009-17:54:03.597(-4)? (STDERR)   return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
W20151009-17:54:03.597(-4)? (STDERR)                  ^
W20151009-17:54:03.598(-4)? (STDERR) Error: ENOENT, no such file or directory '/var/folders/jp/1p1ny1kx2jb3t4jb36ygg7580000gn/T/electrify/bundling/bundle/settings.json'
W20151009-17:54:03.598(-4)? (STDERR)     at Object.fs.openSync (fs.js:439:18)
W20151009-17:54:03.598(-4)? (STDERR)     at Object.fs.writeFileSync (fs.js:978:15)
W20151009-17:54:03.598(-4)? (STDERR)     at ChildProcess.<anonymous> (/Users/lacymorrow/.meteor/packages/arboleya_electrify/.1.4.0.4gvna4++os+web.browser+web.cordova/npm/node_modules/electrify/lib/app.js:71:8)
W20151009-17:54:03.598(-4)? (STDERR)     at ChildProcess.emit (events.js:98:17)
W20151009-17:54:03.599(-4)? (STDERR)     at Process.ChildProcess._handle.onexit (child_process.js:820:12)
lacymorrow commented 8 years ago

I'll tinker and try the npm method, my app also uses the fs module, could be getting race conditions.

lacymorrow commented 8 years ago

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)
arboleya commented 8 years ago

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
arboleya commented 8 years ago

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?

lacymorrow commented 8 years ago

yep, seems to build properly

umurpza commented 8 years ago

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

mmatvien commented 8 years ago

same error here as well

challett commented 8 years ago

Same issue on 64 bit windows

arboleya commented 8 years ago

Should be fixed in 2.0.0, please update and try again.

In case the problem persists, please re-open.

lacymorrow commented 8 years ago

Worked like a charm! Thanks @arboleya