electron-vue icon indicating copy to clipboard operation
electron-vue copied to clipboard

Error in building renderer process

Open jiadongxu opened this issue 5 years ago • 4 comments


/_ \ __ /\ __ ____ /\ \ __ __ __ /_ \ /\ \
//\ \ / ,.\ \ \ ,_\ / ,__\ _______ \ \ \____ /\ \/\ \ /\_\ \//\ \ \_\ \ \_\ \_ /\ __/ \ \ \/ /\__, /_\ \ \ ,. \ \ _\ \/\ \ _\ _ /\ ,. \ /_\ _\ \ \ _ /_/// \ _/ \ _/ \ \ \ /_\ _
/
/ // \ _\ // // // // // / / /__/

  • building main process ✔ building main process / building renderer process

ERROR failed to build renderer process

Hash: c2e5fa16ff42f8b4bd9e
Version: webpack 4.41.2
Time: 24312ms
Built at: 2019-11-16 08:53:37
                          Asset      Size  Chunks  Chunk Names
 fonts/element-icons--fonts.ttf  54.6 KiB          
fonts/element-icons--fonts.woff  27.5 KiB          
      imgs/login_bg--assets.png   192 KiB          
      imgs/title_bg--assets.png   181 KiB          
                    renderer.js   972 KiB       0  renderer
Entrypoint renderer = renderer.js
  [9] ./node_modules/vue-loader/lib/runtime/componentNormalizer.js 2.63 KiB {0} [built]
 [26] ./node_modules/vue-style-loader/lib/addStylesClient.js + 1 modules 6.71 KiB {0} [built]
      | ./node_modules/vue-style-loader/lib/addStylesClient.js 6.09 KiB [built]
      | ./node_modules/vue-style-loader/lib/listToStyles.js 637 bytes [built]
[102] ./src/renderer/store/modules/index.js 238 bytes {0} [built]
[103] external "vue-router" 42 bytes {0} [built]
[104] external "vuex" 42 bytes {0} [built]
[105] external "vuex-electron" 42 bytes {0} [built]
[183] external "axios" 42 bytes {0} [built]
[184] external "element-ui" 42 bytes {0} [built]
[195] external "vue-moment" 42 bytes {0} [built]
[196] ./node_modules/element-ui/lib/theme-chalk/index.css 433 bytes {0} [built]
[197] ./node_modules/css-loader!./node_modules/element-ui/lib/theme-chalk/index.css 227 KiB {0} [built]
[200] ./src/renderer/App.vue?vue&type=style&index=0&lang=css& 560 bytes {0} [built]
[411] external "vue-electron" 42 bytes {0} [built]
[412] ./src/renderer/components/Index.vue + 23 modules 80.6 KiB {0} [built]
      | ./src/renderer/components/Index.vue 563 bytes [built]
      | ./src/renderer/components/Index.vue?vue&type=template&id=7e2fc81c&scoped=true& 221 bytes [built]
      | ./src/renderer/components/Index.vue?vue&type=script&lang=js& 360 bytes [built]
      | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/components/Index.vue?vue&type=template&id=7e2fc81c&scoped=true& 2.78 KiB [built]
      | ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/components/Index.vue?vue&type=script&lang=js& 5.17 KiB [built]
      | ./src/renderer/components/Index/VoiceInfo.vue 582 bytes [built]
      | ./src/renderer/components/Index/VoiceProcess.vue 594 bytes [built]
      | ./src/renderer/components/Index/VoiceInfo.vue?vue&type=template&id=3fa9670a&scoped=true& 231 bytes [built]
      | ./src/renderer/components/Index/VoiceInfo.vue?vue&type=script&lang=js& 380 bytes [built]
      | ./src/renderer/components/Index/VoiceProcess.vue?vue&type=template&id=3ad06d18&scoped=true& 234 bytes [built]
      | ./src/renderer/components/Index/VoiceProcess.vue?vue&type=script&lang=js& 386 bytes [built]
      | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/components/Index/VoiceInfo.vue?vue&type=template&id=3fa9670a&scoped=true& 1.5 KiB [built]
      | ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/components/Index/VoiceInfo.vue?vue&type=script&lang=js& 14.7 KiB [built]
      | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/components/Index/VoiceProcess.vue?vue&type=template&id=3ad06d18&scoped=true& 1.49 KiB [built]
      | ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/components/Index/VoiceProcess.vue?vue&type=script&lang=js& 16.8 KiB [built]
      |     + 9 hidden modules
[413] ./src/renderer/main.js + 11 modules 322 KiB {0} [built]
      | ./src/renderer/main.js 621 bytes [built]
      | ./node_modules/vue/dist/vue.esm.js 318 KiB [built]
      | ./src/renderer/App.vue 510 bytes [built]
      | ./src/renderer/router/index.js 360 bytes [built]
      | ./src/renderer/store/index.js 342 bytes [built]
      | ./src/renderer/components/common/Global.vue 403 bytes [built]
      | ./src/renderer/App.vue?vue&type=template&id=bf8c71ee& 201 bytes [built]
      | ./src/renderer/App.vue?vue&type=script&lang=js& 344 bytes [built]
      | ./src/renderer/components/common/Global.vue?vue&type=script&lang=js& 374 bytes [built]
      | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/App.vue?vue&type=template&id=bf8c71ee& 210 bytes [built]
      | ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/App.vue?vue&type=script&lang=js& 38 bytes [built]
      | ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/components/common/Global.vue?vue&type=script&lang=js& 105 bytes [built]
    + 400 hidden modules

ERROR in renderer.js from Terser
o redeclared [renderer.js:1,773651]
Child html-webpack-plugin for "index.html":
         Asset     Size  Chunks  Chunk Names
    index.html  534 KiB       0  
    Entrypoint undefined = index.html
    [0] ./node_modules/html-webpack-plugin/lib/loader.js!./src/index.ejs 1.76 KiB {0} [built]
    [1] ./node_modules/lodash/lodash.js 528 KiB {0} [built]
    [2] (webpack)/buildin/module.js 497 bytes {0} [built]

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] build: node .electron-vue/build.js && electron-builder . Pistis "cnpm" npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/qianxuechao/.npm/_logs/2019-11-16T00_53_38_040Z-debug.log

jiadongxu avatar Nov 16 '19 01:11 jiadongxu

Similar problem here... although it was working a few weeks ago.

ROTGP avatar Nov 19 '19 10:11 ROTGP

@jiadongxu Did you found a solutioN?

ruudboon avatar Nov 27 '19 11:11 ruudboon

For me i changed to node version 10.16.0 and it works !

julnegre avatar Dec 02 '19 10:12 julnegre

我也有一样的问题 ,,,, 怎么解决呢

kekekezi avatar Dec 26 '22 06:12 kekekezi