WEB/Electron

[Electron] build 시 unresolved modules 오류 해결 방법

S0PH1A 2019. 4. 26. 16:26
반응형

[Electron] build 시 unresolved modules 오류 해결 방법


Electron Build 할 때 아래와 같이 jQuery, popper 등 오류날 경우

> build

Configuring yargs through package.json is deprecated and will be removed in the next major release, please use the JS API instead.
Configuring yargs through package.json is deprecated and will be removed in the next major release, please use the JS API instead.
  • electron-builder version=20.39.0
  • loaded configuration file=package.json ("build" field)
  • writing effective config file=builder-effective-config.yaml
Error: Unresolved node modules: jquery
...중략...

 

js를 npm으로 설치해 주면 된다.

ex) jquery 오류 난 경우

$ npm install jquery --save

 

 


[참고] https://github.com/electron-userland/electron-builder/issues/2529

반응형