求助一个 electron vue 工程 run 不起来 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
请不要在回答技术问题时复制粘贴 AI 生成的内容
cutecore
V2EX    程序员

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

  •  < href="Javascript:" Onclick="downVoteTopic(981289);" class="vote">
  •   cutecore 2023-10-12 13:19:38 +08:00 1516 次点击
    这是一个创建于 728 天前的主题,其中的信息可能已经有所发展或是发生改变。
    对这个 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';
    3 条回复    2023-10-12 17:32:32 +08:00
    sechi
        1
    sechi  
       2023-10-12 13:52:30 +08:00
    是不是 node_modules 里的某一个依赖是 es6+语法啊,应该有提示你报错的文件,把那个文件所在的依赖放到 transpiledependencies 里试试。https://cli.vuejs.org/config/#transpiledependencies
    snowlyg
        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!
    ```
    cutecore
        3
    cutecore  
    OP
       2023-10-12 17:32:32 +08:00
    @snowlyg 一会我再试试
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     3776 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 22ms UTC 00:53 PVG 08:53 LAX 17:53 JFK 20:53
    Do have faith in what you're doing.
    ubao snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86