Syntax Error: Error: ENOENT: no such file or directory, open ‘C:\Users\Admin\Desktop\nurseinfoms-web

Syntax Error: Error: ENOENT: no such file or directory, open ‘C:\Users\Admin\Desktop\nurseinfoms-web\src\assets\images\login_box.png’
@ ./node_modules/cache-loader/dist/cjs.js??ref–12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref–0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/login.vue?vue&type=script&lang=js& 22:40-80
@ ./src/views/login.vue?vue&type=script&lang=js&
@ ./src/views/login.vue
@ ./src/router/routers.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://192.168.188.136:8013/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

解决方法:

我这边是图片路径多了一个空格,导致找不到图片文件,把空格删除就好了

你可能感兴趣的:(前端,javascript,vue.js)