Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could use with esbuild-loader & vue #772

Closed
shenchaoran opened this issue Aug 5, 2022 · 2 comments
Closed

could use with esbuild-loader & vue #772

shenchaoran opened this issue Aug 5, 2022 · 2 comments
Labels

Comments

@shenchaoran
Copy link

Current behavior

when use esbuild-loader, vue SFC is not type checked

Environment

  • fork-ts-checker-webpack-plugin: 6.5.2
  • typescript: 4.7.4
  • eslint: 8.21.0
  • webpack: 4.46.0
  • os: mac
@shenchaoran shenchaoran added the bug label Aug 5, 2022
@danparm
Copy link

danparm commented Aug 10, 2022

Happy to make a separate issue, but I'm also not getting type checking on Vue SFCs when using <script lang="ts" setup>.

Using the standard <script lang="ts"> with defineComponent still receives type checking.

Same behavior in v6 with webpack4 and v7 with webpack5.

@piotr-oles
Copy link
Collaborator

I'm dropping support for Vue.js. For the last few years, support for Vue.js has been broken, and the implementation of Vue.js integration was a hacky work-around. Unfortunately, TypeScript doesn't expose an API to do that properly, and while I created a microsoft/TypeScript#38736 on the TypeScript repository, the TypeScript team has other priorities. As I won't have time to support this feature and am receiving justified bug reports, I believe it's better to make it clear that Vue.js is not supported by the plugin instead of pretending that it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants