electron-userland / electron-prebuilt-compile

electron-prebuilt with Babel and React built-in
167 stars 50 forks source link

Having entry point in root prevents transpilation in build #7

Open aendra-rininsland opened 8 years ago

aendra-rininsland commented 8 years ago

I had my main entry in package.json pointing at a file in the same folder as package.json, which was preventing any transpilation from going on. Running electron . would work perfectly fine, but doing a build using electron-packager-compile resulted in the following error:

screen shot 2016-08-15 at 17 10 48

Moving it into a sub-directory suddenly made everything work.

whphhg commented 7 years ago

I've ran into a similar issue with having main.js electron file in the root along with package.json causing it to fail after packaging with electron-builder. If I move the main.js into a sub-directory and change main in package.json to point at the sub-directory it works ok after it's built.