Closed NiklasRosenstein closed 6 years ago
Set env ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true
as workaround.
Please ˋnpm ls --prodˋ
The workaround works. Thanks!
Well, we need to fix issue :) please attach result of npm ls --prod
Oh right, sorry. :)
$ npm ls --prod
I was getting the same error only with fsevents
, the env variable workaround worked for me
I am getting the same error for jquery
with antd@2.13.11
, which has it listed as a peerDependency, but it is not used by any React
component I'm importing from antd
.
After installing (-save-dev) jquery
the build is successful.
$ npm ls --prod
I was getting the same error Unresolved node modules: node-pre-gyp, create-react-class, prop-types, react-onclickoutside, moment, react, react-dom
@develar I'm not sure if this workaround actually fixes the problem? I have unresolved modules which appear to be sub-dependencies and are truly needed in the final build, so what's the root of this issue?
@ClementParis016 Please try 20.9.2 If error still occurred, please npm ls --prod
Set env
ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true
as workaround.Please ˋnpm ls --prodˋ
how to set electron env?
Set env
ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true
as workaround. Please ˋnpm ls --prodˋhow to set electron env?
run in cmd: set ELECTRON_BUILDER_ALLOW_UNRESOLVED_DEPENDENCIES=true
package.json (shortended)
Running
electron-builder
gives me anError: Unresolved node modules: extract-zip
. Any idea where that's coming from? I've already triedyarn add extract-zip
, to no avail.Spoiler
``` $ yarn dist yarn run v1.2.1 warning package.json: No license field $ electron-builder electron-builder 19.42.1 Rebuilding native production dependencies for win32:x64 Rebuilding native dependency node-sass Packaging for win32 x64 using electron 1.8.1 to dist\win-unpacked Error: Unresolved node modules: extract-zip at C:\Users\niklas\repos\aixsponza\asset-browser\node_modules\electron-builder\src\util\packageDependencies.ts:112:19 From previous event: at Collector.resolveUnresolvedHoisted (C:\Users\niklas\repos\aixsponza\asset-browser\node_modules\electron-builder\out\util\packageDependencies.js:208:11) at C:\Users\niklas\repos\aixsponza\asset-browser\node_modules\electron-builder\src\util\packageDependencies.ts:88:18 at Generator.next (