LoginSignup
0
0

More than 5 years have passed since last update.

Electron vueでbuild時にUnexpected tokenが出る

Posted at
ERROR in unknown: Unexpected token (14946:4)
Child html-webpack-plugin for "index.html":
     1 asset
    Entrypoint undefined = index.html
    [0] ./node_modules/html-webpack-plugin/lib/loader.js!./src/index.ejs 1.28 KiB {0} [built]
    [1] ./node_modules/lodash/lodash.js 527 KiB {0} [built]
    [2] (webpack)/buildin/module.js 497 bytes {0} [built]

packしてもbuildしても出る。

原因はvue内でjsしか書いてないのにts宣言している箇所があることだった・・・

<script lang="ts">

しょうもない時間を潰してしまった・・・

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0