V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
cutecore
V2EX  ›  程序员

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

  •  
  •   cutecore · 2023-10-12 13:19:38 +08:00 · 1087 次点击
    这是一个创建于 393 天前的主题,其中的信息可能已经有所发展或是发生改变。
    对这个 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   ·   实用小工具   ·   2781 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 13:43 · PVG 21:43 · LAX 05:43 · JFK 08:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.