wangxg2016 / vue-bulma

轻量级高性能MVVM Admin UI框架,Charts Collaopse Modal NavMenu Pagination ProgressBar Rating Timeline Toast
https://admin-c79b5.firebaseapp.com/admin/index
MIT License
406 stars 128 forks source link

npm run dev error #9

Open catg0tfish opened 7 years ago

catg0tfish commented 7 years ago

my system is ubuntu 16.04 node 8.x npm 5.x i execute this git clone vue-bulma and cnpm install , last cnpm run dev the error like this :

ERROR in ./src/main.js Module not found: Error: Cannot resolve 'file' or 'directory' ./demos/notifications in /home/devOs/code/vue-study/vue-admin/vue-bulma/src @ ./src/main.js 131:21-53

ERROR in ./~/_vue-loader@9.9.5@vue-loader/lib/template-compiler.js?id=data-v-1877d490!./~/_vue-loader@9.9.5@vue-loader/lib/selector.js?type=template&index=0!./src/App.vue template syntax error tag

has no matching end tag.

ERROR in ./~/_vue-loader@9.9.5@vue-loader/lib/template-compiler.js?id=data-v-1895148a!./~/_vue-loader@9.9.5@vue-loader/lib/selector.js?type=template&index=0!./src/demos/Index.vue template syntax error tag

has no matching end tag.

ERROR in ./~/_babel-loader@6.4.1@babel-loader/lib!./~/_vue-loader@9.9.5@vue-loader/lib/selector.js?type=script&index=0!./src/components/timeline/index.vue Module not found: Error: Cannot resolve 'file' or 'directory' ./Timeline in /home/devOs/code/vue-study/vue-admin/vue-bulma/src/components/timeline @ ./~/_babel-loader@6.4.1@babel-loader/lib!./~/_vue-loader@9.9.5@vue-loader/lib/selector.js?type=script&index=0!./src/components/timeline/index.vue 7:16-37

ERROR in ./~/_babel-loader@6.4.1@babel-loader/lib!./~/_vue-loader@9.9.5@vue-loader/lib/selector.js?type=script&index=0!./src/components/timeline/index.vue Module not found: Error: Cannot resolve 'file' or 'directory' ./Timelineitem in /home/devOs/code/vue-study/vue-admin/vue-bulma/src/components/timeline @ ./~/_babel-loader@6.4.1@babel-loader/lib!./~/_vue-loader@9.9.5@vue-loader/lib/selector.js?type=script&index=0!./src/components/timeline/index.vue 11:20-45

gufoe commented 6 years ago

I have a patch to fix these errors, apply it with git apply, paste the following and then press ctrl + d:

diff --git a/package.json b/package.json
index 3eefba0..ecee905 100644
--- a/package.json
+++ b/package.json
@@ -62,7 +62,7 @@
     "shelljs": "^0.7.4",
     "sinon": "^1.17.6",
     "sinon-chai": "^2.8.0",
-    "swiper": "^3.3.1",    
+    "swiper": "^3.3.1",
     "url-loader": "^0.5.7",
     "vue-hot-reload-api": "^2.0.6",
     "vue-html-loader": "^1.2.3",
diff --git a/src/components/timeline/index.vue b/src/components/timeline/index.vue
index ab554db..dc71ff0 100644
--- a/src/components/timeline/index.vue
+++ b/src/components/timeline/index.vue
@@ -1,6 +1,6 @@
 <script>
-import Timeline from './Timeline'
-import TimelineItem from './Timelineitem'
+import Timeline from './timeline'
+import TimelineItem from './timelineitem'

 export default {
   TimelineItem,
diff --git a/src/main.js b/src/main.js
index 5825f7b..5ed5a6d 100644
--- a/src/main.js
+++ b/src/main.js
@@ -34,7 +34,7 @@ import Title from './demos/Title'
 import Tabs from './demos/Tabs'
 import Table from './demos/Table'
 import Image from './demos/Image'
-import Notifications from './demos/notifications'
+import Notifications from './demos/Notifications'

 // vuex store
 import store from './store'