Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run build:win32 打包出错 #209

Open
yhxiaoh opened this issue Nov 26, 2021 · 4 comments
Open

npm run build:win32 打包出错 #209

yhxiaoh opened this issue Nov 26, 2021 · 4 comments

Comments

@yhxiaoh
Copy link

yhxiaoh commented Nov 26, 2021

ERROR in renderer.js from Terser
Windows 10 打包出错,建议解决一下

@willnewii willnewii mentioned this issue Nov 27, 2021
@willnewii
Copy link
Owner

已更新,可以试试当前版本构建是否成功.

@yhxiaoh
Copy link
Author

yhxiaoh commented Nov 27, 2021

使用了dev 分支下的,进行了 npm i 以及npm run build, 还是会有以下错误信息
目前使用的 node 版本 "v14.17.6"以及npm 版本“6.14.15”
image
image

@willnewii
Copy link
Owner

删除node_modules 重新装呢? 我昨天是把node 升到16.13.0 了.

@Chef5
Copy link

Chef5 commented Dec 14, 2021

macOS 10.15报同样错

qiniuClient % node -v
v16.13.1
qiniuClient % npm -v
8.1.2

错误信息:

 ERROR  failed to build renderer process

    Hash: 1e6475c8a284dd7242be
    Version: webpack 4.46.0
    Time: 14162ms
    Built at: 2021/12/14 下午9:40:54
                   Asset      Size  Chunks  Chunk Names
      fonts/ionicons.ttf   193 KiB          
     fonts/ionicons.woff   193 KiB          
    fonts/ionicons.woff2  80.3 KiB          
           imgs/icon.png   566 KiB          
       imgs/ionicons.svg   542 KiB          
            renderer.css   368 KiB       0  renderer
             renderer.js  17.6 MiB       0  renderer
    Entrypoint renderer = renderer.css renderer.js
       [2] external "path" 42 bytes {0} [built]
      [56] ./node_modules/vue/dist/vue.esm.js 320 KiB {0} [built]
      [85] ./node_modules/axios/index.js 40 bytes {0} [built]
      [86] ./node_modules/babel-runtime/core-js/promise.js 88 bytes {0} [built]
     [126] ./node_modules/babel-runtime/helpers/typeof.js 1.04 KiB {0} [built]
     [127] ./src/renderer/service/constants.js 2.08 KiB {0} [built]
     [171] ./src/renderer/service/util.js 7.37 KiB {0} [built]
     [582] ./src/renderer/main.js 2.87 KiB {0} [built]
     [612] ./node_modules/vue-router/dist/vue-router.esm.js 81.2 KiB {0} [built]
     [629] ./src/renderer/service/loadComponent.js 1.79 KiB {0} [built]
     [643] ./src/renderer/cos/CloudObjectStorage.js 8.99 KiB {0} [built]
    [2363] ./src/renderer/service/pasteImageService.js 6.07 KiB {0} [built]
    [2377] ./src/renderer/routes.js 1.27 KiB {0} [built]
    [2405] ./src/renderer/vuex/store.js 685 bytes {0} [built]
    [2408] ./src/renderer/App.vue 617 bytes {0} [built]
        + 2424 hidden modules
    
    WARNING in ./node_modules/vm2/lib/main.js 722:102-109
    Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
     @ ./node_modules/vm2/index.js
     @ ./node_modules/degenerator/dist/src/index.js
     @ ./node_modules/pac-resolver/dist/index.js
     @ ./node_modules/pac-proxy-agent/dist/agent.js
     @ ./node_modules/pac-proxy-agent/dist/index.js
     @ ./node_modules/proxy-agent/index.js
     @ ./node_modules/urllib/lib/detect_proxy_agent.js
     @ ./node_modules/urllib/lib/urllib.js
     @ ./node_modules/urllib/lib/index.js
     @ ./node_modules/ks3/lib/request.js
     @ ./node_modules/ks3/lib sync ^\.\/.*$
     @ ./node_modules/ks3/lib/ks3.js
     @ ./src/renderer/cos/ks3.js
     @ ./src/renderer/cos/CloudObjectStorage.js
     @ ./src/renderer/main.js
    
    WARNING in ./node_modules/vm2/lib/main.js 1338:1-8
    Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
     @ ./node_modules/vm2/index.js
     @ ./node_modules/degenerator/dist/src/index.js
     @ ./node_modules/pac-resolver/dist/index.js
     @ ./node_modules/pac-proxy-agent/dist/agent.js
     @ ./node_modules/pac-proxy-agent/dist/index.js
     @ ./node_modules/proxy-agent/index.js
     @ ./node_modules/urllib/lib/detect_proxy_agent.js
     @ ./node_modules/urllib/lib/urllib.js
     @ ./node_modules/urllib/lib/index.js
     @ ./node_modules/ks3/lib/request.js
     @ ./node_modules/ks3/lib sync ^\.\/.*$
     @ ./node_modules/ks3/lib/ks3.js
     @ ./src/renderer/cos/ks3.js
     @ ./src/renderer/cos/CloudObjectStorage.js
     @ ./src/renderer/main.js
    
    WARNING in ./node_modules/vm2/lib/main.js
    Module not found: Error: Can't resolve 'coffee-script' in '/Users/XW/Examples/qiniuClient/node_modules/vm2/lib'
     @ ./node_modules/vm2/lib/main.js
     @ ./node_modules/vm2/index.js
     @ ./node_modules/degenerator/dist/src/index.js
     @ ./node_modules/pac-resolver/dist/index.js
     @ ./node_modules/pac-proxy-agent/dist/agent.js
     @ ./node_modules/pac-proxy-agent/dist/index.js
     @ ./node_modules/proxy-agent/index.js
     @ ./node_modules/urllib/lib/detect_proxy_agent.js
     @ ./node_modules/urllib/lib/urllib.js
     @ ./node_modules/urllib/lib/index.js
     @ ./node_modules/ks3/lib/request.js
     @ ./node_modules/ks3/lib sync ^\.\/.*$
     @ ./node_modules/ks3/lib/ks3.js
     @ ./src/renderer/cos/ks3.js
     @ ./src/renderer/cos/CloudObjectStorage.js
     @ ./src/renderer/main.js
    
    ERROR in unknown: Unexpected token (1275:63)
    
    ERROR in renderer.js from Terser
    Invalid function parameter [renderer.js:211464,21]
    Child html-webpack-plugin for "index.html":
             Asset     Size  Chunks  Chunk Names
        index.html  537 KiB       0  
        Entrypoint undefined = index.html
        [0] ./node_modules/html-webpack-plugin/lib/loader.js!./index.ejs 1.6 KiB {0} [built]
        [1] ./node_modules/lodash/lodash.js 531 KiB {0} [built]
        [2] (webpack)/buildin/module.js 497 bytes {0} [built]
    Child mini-css-extract-plugin node_modules/css-loader/index.js!node_modules/v-contextmenu/dist/index.css:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants