求助一个 electron vue 工程 run 不起来

258 天前
 cutecore
对这个 MediaChips 软件挺感兴趣的,https://github.com/fupdec/mediaChips
想 build 下改改,但是 build 报错,搞了半天没整明白

Module parse failed: Unexpected token (7:9)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| export { ERR as ErrorCodes } from './common/error-codes.js';
| /** @internal */
> export * as foreignContent from './common/foreign-content.js';
| /** @internal */
| export * as html from './common/html.js';
940 次点击
所在节点    程序员
3 条回复
sechi
258 天前
是不是 node_modules 里的某一个依赖是 es6+语法啊,应该有提示你报错的文件,把那个文件所在的依赖放到 transpiledependencies 里试试。https://cli.vuejs.org/config/#transpiledependencies
snowlyg
258 天前
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!
```
cutecore
257 天前
@snowlyg 一会我再试试

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/981289

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX