Skip to content

Add @vue/eslint-plugin-typescript when adding @vue/cli-plugin-typescript to an existing project (that uses eslint) #970

Closed
@fdeitelhoff

Description

@fdeitelhoff

Version

3.0.0-beta.6

Reproduction link

https://github.com/fdeitelhoff/brickobotik.codes

Steps to reproduce

  1. Setup a clean project via vue cli (e.g. "vue create tests")
  2. Add the typescript plugin via "npm install -D @vue/cli-plugin-typescript"
  3. Invoke the typescript plugin via "vue invoke typescript"

What is expected?

The freshly created project should compile.

What is actually happening?

Two error messages:

WARNING Compiled with 2 warnings

error: Parsing error: Unexpected character '@' at src\App.vue:
10 | import HelloWorld from './components/HelloWorld.vue';
11 |

12 | @component({
13 | components: {
14 | HelloWorld,
15 | },

1 error found.

error: Parsing error: Unexpected character '@' at src\components\HelloWorld.vue:
32 | import { Component, Prop, Vue } from 'vue-property-decorator';
33 |

34 | @component
35 | export default class HelloWorld extends Vue {
36 | @prop() private msg!: string;
37 | }

1 error found.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions