qld-cf / electron-react-tpl

electron12 + umi3.2 + typescript react 16.12 + redux + antDesign 4.0 + eslint tslint react-tslint脚手架, 下载即用,仅供学习参考
155 stars 37 forks source link

windows打包后运行提示 Cannot find module 'electron-is-dev' #4

Closed Alioth1017 closed 4 years ago

Alioth1017 commented 4 years ago

image

qld-cf commented 4 years ago

"electron-is-dev": "^1.2.0", 移到dependence试试 可能没打包进去 @Alioth1017

Alioth1017 commented 4 years ago

移动过去了,还是报这个错

qld-cf commented 4 years ago

移动过去了,还是报这个错

你提交下 我看下你仓库和代码

Alioth1017 commented 4 years ago

已提交,帮我看看哈

qld-cf commented 4 years ago
 electron-builder  version=22.7.0 os=10.0.18363
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=release\0.0.1_setup\builder-effective-config.yaml
  • packaging       platform=win32 arch=x64 electron=8.2.0 appOutDir=release\0.0.1_setup\win-unpacked   
  • packaging       platform=win32 arch=ia32 electron=8.2.0 appOutDir=release\0.0.1_setup\win-ia32-unpacked
  • building        target=nsis file=release\0.0.1_setup\APP_setup_0.0.1.exe archs=x64, ia32 oneClick=false perMachine=false
  • building block map  blockMapFile=release\0.0.1_setup\APP_setup_0.0.1.exe.blockmap
qld-cf commented 4 years ago

@Alioth1017 本地正常 无法复现

Alioth1017 commented 4 years ago

打包安装好之后,运行程序的时候会报那个错,我自己再研究研究吧