前人种树:
src下两个文件:index.js 以及 app.vue,index.js中import App from 'app.vue'打包会出错,但是改为import App from './app.vue' 就可以成功!
src下两个文件:index.js 以及 app.vue,index.js中import App from 'app.vue'打包会出错,但是改为import App from './app.vue' 就可以成功!
2018-01-24
安装了
├── file-loader@1.1.6
├── style-loader@0.19.1
└── url-loader@0.6.2
还是会报错
ERROR in ./src/assets/images/bg.png
Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
@ ./src/index.js 5:0-31
├── file-loader@1.1.6
├── style-loader@0.19.1
└── url-loader@0.6.2
还是会报错
ERROR in ./src/assets/images/bg.png
Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type.
(Source code omitted for this binary file)
@ ./src/index.js 5:0-31
2018-01-24
感觉奇怪的很,按照老师的步骤来,到最后后dev的时候app.vue那要报错说有个模块找不到,倒是看node_module文件夹里面又有,最后删除node_module文件重新npm过后就没有问题了,不知道什么原因造成的。
2018-01-23