VUE的import store from ‘./vuex/store改为‘ import store from ‘./vuex/store.js‘

时间:2024-04-17 13:44:26

 ERROR  Failed to compile with 1 error                                                                       下午5:25:40

 error  in (webpack)-dev-server/client?http://10.18.173.180:8081/sockjs-node

Syntax Error: no such file or directory, open 'D:\4myroom\HBuilder\start\vuexdemo\node_modules\webpack-dev-server\client\index.js'


 @ multi (webpack)-dev-server/client?http://10.18.173.180:8081/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

import store from './vuex/store改为' 

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

可能vue2的版本问题】

因为在vue3是

import "./views/login.vue",引入页面

import "./views/login"引入js