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

Could not build the ui #1

Open
johnico opened this issue Sep 5, 2018 · 1 comment
Open

Could not build the ui #1

johnico opened this issue Sep 5, 2018 · 1 comment

Comments

@johnico
Copy link

johnico commented Sep 5, 2018

yarn run build
yarn run v1.9.4
$ node build/build.js
module.js:538
throw err;
^

Error: Cannot find module 'chalk'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object. (/klog/build/check-versions.js:3:15)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
error Command failed with exit code 1.

@johnico
Copy link
Author

johnico commented Sep 5, 2018

After I manged . I got this :

`> node build/build.js

⠙ building for production...Skipping static resource "dist/static/js/vendor.6faff67c730594df49d7.js" (3.44 MB) - max size is 2.1 MB
Total precache size is about 192 kB for 4 resources.
Hash: cbf62070b203674e8e76
Version: webpack 3.12.0
Time: 102821ms
Asset Size Chunks Chunk Names
static/img/icons/android-chrome-512x512.png 29.8 kB [emitted]
static/img/logo.e6feed7.png 38.9 kB [emitted]
static/js/app.7c5c2f7b1c94335ebe04.js 32.9 kB 1 [emitted] app
static/js/manifest.2ae2e69a05c33dfc65f8.js 857 bytes 2 [emitted] manifest
static/css/app.80b6bd90a08d73fd1f6e13a4d0b037a8.css 156 kB 1 [emitted] app
static/js/vendor.6faff67c730594df49d7.js.map 13.5 MB 0 [emitted] vendor
static/js/app.7c5c2f7b1c94335ebe04.js.map 47.4 kB 1 [emitted] app
static/js/manifest.2ae2e69a05c33dfc65f8.js.map 9.24 kB 2 [emitted] manifest
index.html 2.53 kB [emitted]
static/img/icons/apple-touch-icon-120x120.png 3.37 kB [emitted]
static/img/icons/apple-touch-icon-152x152.png 4.05 kB [emitted]
static/img/icons/android-chrome-192x192.png 9.42 kB [emitted]
static/js/vendor.6faff67c730594df49d7.js 3.41 MB 0 [emitted] [big] vendor
static/img/icons/apple-touch-icon-180x180.png 4.68 kB [emitted]
static/img/icons/apple-touch-icon-60x60.png 1.49 kB [emitted]
static/img/icons/apple-touch-icon-76x76.png 1.82 kB [emitted]
static/img/icons/apple-touch-icon.png 4.68 kB [emitted]
static/img/icons/favicon-16x16.png 799 bytes [emitted]
static/img/icons/favicon-32x32.png 1.27 kB [emitted]
static/img/icons/favicon.ico 15.1 kB [emitted]
static/img/icons/mstile-150x150.png 4.28 kB [emitted]
static/img/icons/msapplication-icon-144x144.png 1.17 kB [emitted]
static/img/icons/safari-pinned-tab.svg 10.6 kB [emitted]
static/manifest.json 440 bytes [emitted]

ERROR in ./src/main.js

http://eslint.org/docs/rules/ Parsing error: The keyword 'import' is reserved
src/main.js:3:1
import Vue from 'vue';
^

✘ 1 problem (1 error, 0 warnings)

Errors:
1 http://eslint.org/docs/rules/null

ERROR in ./src/App.vue

http://eslint.org/docs/rules/ Parsing error: Unexpected token <
src/App.vue:1:1

^

✘ 1 problem (1 error, 0 warnings)

Errors:
1 http://eslint.org/docs/rules/null
@ ./src/main.js 4:0-24

ERROR in static/js/app.7c5c2f7b1c94335ebe04.js from UglifyJs
Unexpected token: punc (() [src/App.vue:137,0][static/js/app.7c5c2f7b1c94335ebe04.js:552,6]

Build complete.

Tip: built files are meant to be served over an HTTP server.
Opening index.html over file:// won't work.`

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

1 participant