Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

loader error  #49

Open
Open
@okaxuan

Description

@okaxuan

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.
|
|


|
Hello {{name}}{{exclamationMarks}}

| <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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions