ElasticHD
ElasticHD copied to clipboard
源代码里缺2个components,编译的时候报错,一个是Queryui,一个是monitor .为什么这两个的源文件不在项目里,
trafficstars
源代码里缺2个components,编译的时候报错,一个是Queryui,一个是monitor .为什么这两个的源文件不在项目里?
同报错, 提示找不到两个components ,分别是 QueryUI和monitor。 npm run dev 结果:
ERROR Failed to compile with 2 errors 上午11:00:30
These relative modules were not found:
* ./monitor in ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/components/Home
.vue
* ./queryui in ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/components/Home
.vue
npm run build 结果:
➜ ElasticHD git:(master) ✗ npm run build
> [email protected] build /Users/马赛克/Downloads/EHD/ElasticHD_github/ElasticHD
> node build/build.js
⠸ building for production...
Starting to optimize CSS...
Processing static/css/app.a61a8059c3972036b52fb94087f387ed.css...
Processed static/css/app.a61a8059c3972036b52fb94087f387ed.css, before: 307047, after: 298152, ratio: 97.1%
Hash: b8a64c150b237bcaaf6c
Version: webpack 2.7.0
Time: 36733ms
Asset Size Chunks Chunk Names
static/fonts/element-icons.b02bdc1.ttf 13.2 kB [emitted]
static/img/fontawesome-webfont.912ec66.svg 444 kB [emitted] [big]
static/fonts/fontawesome-webfont.b06871f.ttf 166 kB [emitted]
static/fonts/fontawesome-webfont.af7ae50.woff2 77.2 kB [emitted]
static/fonts/fontawesome-webfont.fee66e7.woff 98 kB [emitted]
static/fonts/glyphicons-halflings-regular.f4769f9.eot 20.1 kB [emitted]
static/img/glyphicons-halflings-regular.8988968.svg 109 kB [emitted]
static/fonts/glyphicons-halflings-regular.e18bbf6.ttf 45.4 kB [emitted]
static/fonts/glyphicons-halflings-regular.fa27723.woff 23.4 kB [emitted]
static/fonts/glyphicons-halflings-regular.448c34a.woff2 18 kB [emitted]
static/fonts/fontawesome-webfont.674f50d.eot 166 kB [emitted]
static/img/hero.257ac67.svg 41.4 kB [emitted]
static/js/vendor.32d99d81a29e4686992d.js 1.57 MB 0 [emitted] [big] vendor
static/js/app.68237743e5c9f3e465d3.js 65.4 kB 1 [emitted] app
static/js/manifest.6eda9b031d8e1f982020.js 1.51 kB 2 [emitted] manifest
static/css/app.a61a8059c3972036b52fb94087f387ed.css 298 kB 1 [emitted] [big] app
static/js/vendor.32d99d81a29e4686992d.js.map 10.8 MB 0 [emitted] vendor
static/js/app.68237743e5c9f3e465d3.js.map 335 kB 1 [emitted] app
static/css/app.a61a8059c3972036b52fb94087f387ed.css.map 429 kB 1 [emitted] app
static/js/manifest.6eda9b031d8e1f982020.js.map 14.6 kB 2 [emitted] manifest
index.html 680 bytes [emitted]
ERROR in ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/components/Home.vue
Module not found: Error: Can't resolve './monitor' in '/Users/马赛克/Downloads/EHD/ElasticHD_github/ElasticHD/src/components'
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/components/Home.vue 14:0-32
@ ./src/components/Home.vue
@ ./src/router/index.js
@ ./src/main.js
ERROR in ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/components/Home.vue
Module not found: Error: Can't resolve './queryui' in '/Users/马赛克/Downloads/EHD/ElasticHD_github/ElasticHD/src/components'
@ ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./src/components/Home.vue 15:0-32
@ ./src/components/Home.vue
@ ./src/router/index.js
@ ./src/main.js
Build complete.
Tip: built files are meant to be served over an HTTP server.
Opening index.html over file:// won't work.
是不是有两个组件没有添加进来?
请教下elasticHD怎么编译啊?
找不到两个components ,QueryUI和monitor的问题解决了吗?
直接运行 main/main.go 就行
他把静态文件文件夹都打包到了 main/statik/statik.go 这个文件中
应该不用安装编译 js 就可以运行项目
项目源码里面好像确实缺失了 monitor 和 queryui,不知道什么原因
我也出现这种情况了!不知道怎么解决
缺少两个页面,编译好的也没有,注释掉即可~