question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR in unknown: Unexpected token (52869:68)

See original GitHub issue

Found an issue or bug with electron-vue? Tell me all about it!

Questions regarding how to use electron or vue are likely to be closed as they are not direct issues with this boilerplate. Please seek solutions from official documentation or their respective communities.

Describe the issue / bug.

When running yarn build, it fails to build the renderer process.

How can I reproduce this problem?

It is unclear what the error relates to.

Logs
  • building main process ✔ building main process

\ building renderer process

ERROR failed to build renderer process

Version: webpack 4.37.0
Time: 9298ms
Built at: 07/24/2019 8:50:26 AM
                                         Asset      Size  Chunks  Chunk Names
  fonts/materialdesignicons-webfont--fonts.eot   567 KiB
  fonts/materialdesignicons-webfont--fonts.ttf   567 KiB
 fonts/materialdesignicons-webfont--fonts.woff   273 KiB
fonts/materialdesignicons-webfont--fonts.woff2   200 KiB
                                   renderer.js  1.33 MiB       0  renderer
Entrypoint renderer = renderer.js
  [0] ./node_modules/vue-loader/lib/runtime/componentNormalizer.js 2.63 KiB {0} [built]
  [5] ./node_modules/vue/dist/vue.esm.js 318 KiB {0} [built]

 [12] ./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]
 [57] external "vue-router" 42 bytes {0} [built]
 [60] ./node_modules/vuetify/dist/vuetify.js 1.23 MiB {0} [built]
 [77] external "axios" 42 bytes {0} [built]
 [81] ./src/renderer/App.vue?vue&type=style&index=0&lang=scss& 652 bytes {0} [built]
[144] ./node_modules/vuetify/dist/vuetify.min.css 433 bytes {0} [built]
[145] ./node_modules/css-loader!./node_modules/vuetify/dist/vuetify.min.css 396 KiB {0} [built]
[146] ./node_modules/@mdi/font/css/materialdesignicons.css 447 bytes {0} [built]
[147] ./node_modules/css-loader!./node_modules/@mdi/font/css/materialdesignicons.css 176 KiB {0} [built]
[156] external "vue-electron" 42 bytes {0} [built]
[157] external "electron-store" 42 bytes {0} [built]
[158] ./src/renderer/main.js + 12 modules 9.33 KiB {0} [built]
      | ./src/renderer/main.js 1.06 KiB [built]
      | ./src/renderer/App.vue 511 bytes [built]
      | ./src/renderer/router/index.js 440 bytes [built]
      | ./node_modules/vuetify-toast-snackbar/src/index.js 1.67 KiB [built]
      | ./src/renderer/App.vue?vue&type=template&id=449cace3& 201 bytes [built]
      | ./src/renderer/App.vue?vue&type=script&lang=js& 344 bytes [built]
      | ./node_modules/vuetify-toast-snackbar/src/Toast.vue 505 bytes [built]
      | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/render

er/App.vue?vue&type=template&id=449cace3& 1.07 KiB [built] | ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/App.vue?vue&type=script&lang=js& 935 bytes [built] | ./node_modules/vuetify-toast-snackbar/src/Toast.vue?vue&type=template&id=341bf32b& 177 bytes [built] | ./node_modules/vuetify-toast-snackbar/src/Toast.vue?vue&type=script&lang=js& 232 bytes [built] | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./node_modul es/vuetify-toast-snackbar/src/Toast.vue?vue&type=template&id=341bf32b& 999 bytes [built] | ./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vuetify-toast-snackbar/src/Toast.vue?vue&type=script&lang=js& 1.25 KiB [b uilt] [159] ./src/renderer/pages/Home/index.vue + 9 modules 6.1 KiB {0} [built] | ./src/renderer/pages/Home/index.vue 458 bytes [built] | ./src/renderer/pages/Home/index.vue?vue&type=template&id=b2c35388& 215 bytes [built] | ./src/renderer/pages/Home/index.vue?vue&type=script&lang=js& 372 bytes [built] | ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/render

er/pages/Home/index.vue?vue&type=template&id=b2c35388& 469 bytes [built] | ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/pages/Home/index.vue?vue&type=script&lang =js& 2.41 KiB [built] | ./src/renderer/pages/Home/VMList.vue 461 bytes [built] | ./src/renderer/pages/Home/VMList.vue?vue&type=template&id=f0df2542& 216 bytes [built] | ./src/renderer/pages/Home/VMList.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/render er/pages/Home/VMList.vue?vue&type=template&id=f0df2542& 881 bytes [built] | ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/renderer/pages/Home/VMList.vue?vue&type=script&lan g=js& 326 bytes [built] + 147 hidden modules

ERROR in unknown: Unexpected token (52869:68)
Child html-webpack-plugin for "index.html":
         Asset     Size  Chunks  Chunk Names
    index.html  556 KiB       0
    Entrypoint undefined = index.html
    [0] ./node_modules/html-webpack-plugin/lib/loader.js!./src/index.ejs 1.16 KiB {0} [built]
    [1] ./node_modules/lodash/lodash.js 527 KiB {0} [built]
    [2] (webpack)/buildin/module.js 497 bytes {0} [built]

error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Tell me about your development environment.
  • Node version: v11.10.0
  • NPM version: 6.9.0
  • vue-cli version: 3.2.2
  • Operating System: Ubuntu 19.04

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15

github_iconTop GitHub Comments

11reactions
9646516commented, Dec 5, 2019

I meet the same problem,and I fix it by comment out BabiliWebpackPlugin in webpack.renderer.config.js

8reactions
brian-dupontcommented, Feb 18, 2020

Same issue. Did not see any reference to BabiliWebpackPlugin, so I commented out the 2 references to MinifyPlugin in webpack.renderer.config.js and the build was successful

Read more comments on GitHub >

github_iconTop Results From Across the Web

SyntaxError: unknown: Unexpected token, expected
Javascript allows comma after each key value defintion in an object, not semicolon, that's why you are getting this error.
Read more >
SyntaxError: unknown: Unexpected token (import) : r/webpack
I'm having the exact same issue. Thinking it might be an error with extract-loader, but no one's really talked about it in their...
Read more >
SyntaxError: unknown: Unexpected token, expected
I'm almost done with this challenge, I'm getting a syntax error, can anybody pinpoint it out? Below is my solution. function diffArray(arr1, ...
Read more >
PM22709: ERROR_TOKEN Unexpected token ignored. - IBM
APAR status. Closed as program error. Error description. Problem1: ERROR_TOKEN Unexpected token ignored. 'pic' is invalid. DECLARE ABC pic'99'; Problem3: ...
Read more >
SyntaxError: Unexpected token - JavaScript - MDN Web Docs
Se esperaba un constructor específico de JavaScript pero se recibió algo diferente. Puede ser un simple error de tipeo.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found