loader error #49
Description
I set up the project according to the above steps,npm run build时报错,I change the ts-loader ,the erros still have ,but different
errors:
ERROR in ./src/components/Hello.vue?vue&type=script&lang=ts
Module parse failed: Unexpected token (28:26)
You may need an appropriate loader to handle this file type.
| },
| computed: {
| exclamationMarks(): string {
| return Array(this.enthusiasm + 1).join('!');
| }
@ ./src/components/Hello.vue 2:0-56 3:0-51 3:0-51 10:2-8
@ ./src/index.ts
ERROR in ./src/components/Hello.vue?vue&type=template&id=5de655f2
Module parse failed: Unexpected token (2:0)
You may need an appropriate loader to handle this file type.
|
|
|
| <button @click="decrement">-
@ ./src/components/Hello.vue 1:0-83 11:2-8 12:2-17
@ ./src/index.ts
ERROR in ./src/components/Hello.vue?vue&type=style&index=0&lang=css
Module parse failed: Unexpected token (36:0)
You may need an appropriate loader to handle this file type.
|
|
| .greeting {
| font-size: 20px;
| }
@ ./src/components/Hello.vue 4:0-64
@ ./src/index.ts
ERROR in ./src/components/Hello.vue
vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.
@ ./src/index.ts 2:0-52 8:24-38
ERROR in ./src/components/Hello.vue?vue&type=template&id=5de655f2
vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.
@ ./src/components/Hello.vue 1:0-83 11:2-8 12:2-17
@ ./src/index.ts
ERROR in ./src/components/Hello.vue?vue&type=script&lang=ts
vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.
@ ./src/components/Hello.vue 2:0-56 3:0-51 3:0-51 10:2-8
@ ./src/index.ts
ERROR in ./src/components/Hello.vue?vue&type=style&index=0&lang=css
vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config.
@ ./src/components/Hello.vue 4:0-64
@ ./src/index.ts