Can't build from 1.1.0 tarball on Arch Linux - Uncaught ReferenceError: __webpack_exports__ is not defined
- [x] I am on the latest Hyper.app version
- [x] I have searched the issues of this repo and believe that this is not a duplicate
-
Arch Linux:
-
1.1.0 release:
-
The issue is reproducible in vanilla Hyper.app:
Issue
I made the Arch Linux AUR package for hyper. I noticed it stopped working after a rebuild, nothing opens. So I followed the dev instructions and tried debugging a bit. I did
-
Downloaded 1.1.0 tarball
-
Extracted it and went into directory
-
npm install -
npm run dev -
In a separate terminal,
npm run appThe electron window opens with nothing showing. I opened the electron dev tools and the console shows:
Uncaught ReferenceError: __webpack_exports__ is not defined bundle.js:2286 total init time 120.87000000000006
The funny thing is, if I use yarn install instead of npm install, everything works.
Any ideas on what's causing this? I would guess its a Linux specific issue with the build setup.
I have too problem on ubuntu 16.04
Having the same issues on macOS Sierra
Windows 10 as well. Fortunately yarn install works :)
After doing a little research, the package.json asks for ^[email protected] and npm actually installed ├─┬ [email protected] yesterday, as you can see from the npm output above. I tried again today and npm decided to resolve a different version, ├─┬ [email protected] and it still does not work. Yarn, however, chose version webpack@^2.2.0-rc.3 and it worked fine.
To fix this with npm, from a clean copy of 1.1.0, I explicitly installed the right version after the initial install and the bundle works fine.
npm install
# waiting...
npm install [email protected]
And it confirms it installed the rc.3
└─┬ [email protected]
├─┬ [email protected]
│ └── [email protected]
└── [email protected]
Then I am able to run the app and it works fine. Can anyone confirm that explicitly installing [email protected] with npm fixes this for you, too?
Also, I'm running npm version 4.1.1.
Alright, I see the real issue is webpack/webpack#3980 and is caused by LazyParseWebpackPlugin. Removing that plugin from the webpack config altogether fixes the problem. From the webpack issue:
This is caused by the LazyParseWebpackPlugin. It's not compatible. But as it's now enabled by default you don't need it anymore. cc @TheLarkInn
So either completely removing LazyParseWebpackPlugin or forcing [email protected] would solve this for now.
Thank you @aabmass – fixed!