asticode / astilectron

Electron app that provides an API over a TCP socket that allows executing Electron's method as well as capturing Electron's events

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

using astilectron with vue, error by not define

heliping opened this issue · comments

Dear bro,
I using astilectron with vue.
when "run serve" or "run build", the first time inform not define,
but I run the command twice, it successed, nothing changed.
the log is following.

`PS C:\hlp\02src\mygui\mmq\mmqfront> npm run build

portal@0.1.0 build C:\hlp\02src\mygui\mmq\mmqfront
vue-cli-service build

/ Building for production...

ERROR Failed to compile with 1 error 下午3:35:44
error in ./src/pages/Send/index.vue

Module Error (from ./node_modules/eslint-loader/index.js):

C:\hlp\02src\mygui\mmq\mmqfront\src\pages\Send\index.vue

✖ 1 problem (1 error, 0 warnings)

@ ./src/router.js 28:13-41
@ ./src/main.js
@ multi ./src/main.js

ERROR Build failed with errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! portal@0.1.0 build: vue-cli-service build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the portal@0.1.0 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! C:\Users\shuser\AppData\Roaming\npm-cache_logs\2021-12-09T07_35_44_683Z-debug.log
PS C:\hlp\02src\mygui\mmq\mmqfront> npm run build

portal@0.1.0 build C:\hlp\02src\mygui\mmq\mmqfront
vue-cli-service build

  • Building for production...

WARNING Compiled with 2 warnings 下午3:36:02
warning

asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
css/chunk-vendors.4cb5fce1.css (316 KiB)
js/chunk-vendors.03c58d10.js (1.6 MiB)

warning

entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
app (1.92 MiB)
css/chunk-vendors.4cb5fce1.css
js/chunk-vendors.03c58d10.js
css/app.a61f0562.css
js/app.c18a3fa1.js

File Size Gzipped

dist\app\js\chunk-vendors.03c58d10.js 1643.03 KiB 530.57 KiB
dist\app\js\chunk-45926f3b.086aa401.js 5.61 KiB 1.90 KiB
dist\app\js\chunk-fef40f70.b1e9ed1e.js 5.39 KiB 1.89 KiB
dist\app\js\app.c18a3fa1.js 5.05 KiB 2.18 KiB
dist\app\js\chunk-65588e0d.ff1d5f44.js 3.42 KiB 1.32 KiB
dist\app\js\chunk-2d5e931d.1658ec56.js 2.21 KiB 0.90 KiB
dist\app\js\chunk-db4206a4.81df13ea.js 2.20 KiB 0.88 KiB
dist\app\css\chunk-vendors.4cb5fce1.css 315.60 KiB 42.61 KiB
dist\app\css\app.a61f0562.css 0.02 KiB 0.04 KiB
dist\app\css\chunk-2d5e931d.0e433876.css 0.00 KiB 0.02 KiB
dist\app\css\chunk-45926f3b.8b5fefc0.css 0.00 KiB 0.02 KiB
dist\app\css\chunk-65588e0d.8b5fefc0.css 0.00 KiB 0.02 KiB
dist\app\css\chunk-db4206a4.0e433876.css 0.00 KiB 0.02 KiB
dist\app\css\chunk-fef40f70.8b5fefc0.css 0.00 KiB 0.02 KiB

Images and other types of assets omitted.

DONE Build complete. The dist\app directory is ready to be deployed.
INFO Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html`