1
sechi 2023-10-12 13:52:30 +08:00
是不是 node_modules 里的某一个依赖是 es6+语法啊,应该有提示你报错的文件,把那个文件所在的依赖放到 transpiledependencies 里试试。https://cli.vuejs.org/config/#transpiledependencies
|
2
snowlyg 2023-10-12 16:33:11 +08:00
node: v14.18.0
ubutun 环境 clone build 一气呵成,没有报错 ``` DONE Compiled successfully in 4100ms 4:31:12 PM File Size Gzipped dist_electron/bundled/background.js 209.29 KiB 63.34 KiB Images and other types of assets omitted. INFO Building app with electron-builder: • electron-builder version=22.10.5 os=5.15.90.1-microsoft-standard-WSL2 • writing effective config file=dist_electron/builder-effective-config.yaml • packaging platform=linux arch=x64 electron=17.0.0 appOutDir=dist_electron/linux-unpacked • Unpacking electron zip zipPath=undefined • downloading url=https://github.com/electron/electron/releases/download/v17.0.0/electron-v17.0.0-linux-x64.zip size=99 MB parts=8 • downloaded url=https://github.com/electron/electron/releases/download/v17.0.0/electron-v17.0.0-linux-x64.zip duration=20.536s • building target=AppImage arch=x64 file=dist_electron/MediaChips-0.11.3.AppImage • downloading url=https://github.com/electron-userland/electron-builder-binaries/releases/download/appimage-12.0.1/appimage-12.0.1.7z size=1.6 MB parts=1 • downloaded url=https://github.com/electron-userland/electron-builder-binaries/releases/download/appimage-12.0.1/appimage-12.0.1.7z duration=4.263s DONE Build complete! ``` |