Skip to content

Typechecker doesn't work with Vue.js single file components. #44

@wujekbogdan

Description

@wujekbogdan

I've set up typechecker, it works fine, but only with *.ts files. It doesn't work with *.vue Single file components at all.

I've added the following lines to my tslint.json file But it didn't change anything:

  "include": [
    "src/**/*.ts",
    "src/**/*.vue"
  ]

It seems that tslint is not able to parse the JS code that's wrapped in <script lang="ts"> tags. Is there any workaround? I know that in Webpack they use some trick to pass the content of the script tag into typescript loader. But it's a Webpack specific solution, so I'm afraid that here we have to use a different approach.

I'm not sure is it a bug or is it just a missing feature... and is it an issue related to the fuse-box-typechecker or is something to be implemented directly in the VueComponentPlugin?


Here's my repository, so that you could reproduce: https://github.com/wujekbogdan/fuse-vue-ts/tree/typechecker

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions