-
-
Notifications
You must be signed in to change notification settings - Fork 247
Vue SFC support not working #452
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
Comments
It's not true - it's passed to the registerReporterRpcService fork-ts-checker-webpack-plugin/src/typescript-reporter/reporter/TypeScriptReporterRpcService.ts Line 9 in 1f3d82f
configure call. As this plugin runs reporter in a separate process, it uses RPC client and service to communicate between processes. That's why there is no direct call - only a remote call via RPC client.
Could you share your configuration or create a reproduction repository? We have an end to end tests for Vue support so it's more likely a configuration issue. |
I'm gonna check the tests to see If I can find what i'm doing wrong but overall I'm trying to upgrade the plugin for Nuxt TypeScript support : https://github.com/nuxt/typescript, from v4 to v5. I've created a branch : https://github.com/nuxt/typescript/tree/fork-ts-checker-webpack-plugin-v5 I've intentionnally put a type error in Reproduction steps : With v4 I got the error, with v5 I don't. |
We are experiencing a similar issue to the one @kevinmarrec is experiencing, on our setup (Rails + Webpacker + Vue2 + Typescript 3.9+). Sample config:
Errors in |
@davodesign84 I've been debugging multiple hours on this and still haven't found any clues, so yeah I'm really suspecting there's either an issue with this new package version or some configuration guideline we're missing to make it work. EDIT : Maybe it could be worth trying some of old alpha/beta stages of 5.x to see if the issue has been there from the beginning in 5.x or if it has been something breaking during these alpha & beta stages. |
The issue is that this plugin doesn't add |
🎉 This issue has been resolved in version 5.0.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@piotr-oles Can confirm it works again, thank you 💚 |
Feel free to buy me a beer on GitHub Sponsors 😄 |
Hi @piotr-oles, I observe a similar problem with version 6.1.0 (using Vue CLI 5.0.0-alpha.8), am I missing something? Errors are not detected in my TS vue component unless it is imported from another TS file. UPDATE: |
Uh oh!
There was an error while loading. Please reload this page.
Current behavior
createTypeScriptReporter
fromTypeScriptReporter
, which seems to be the only file that callscreateTypeScriptVueExtension
(https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/blob/master/src/typescript-reporter/reporter/TypeScriptReporter.ts#L37), which itself should provide the.vue
(Vue SFC) support, is never imported or called.I think ForkTsChecker uses a
TypeScriptRpcClient
reporter over the one with Vue SFC support.Expected behavior
createTypeScriptVueExtension
is called and provides.vue
(Vue SFC) support.Steps to reproduce the issue
Vue
section instructions.vue
files (wrong types ex:const x: string = 2
)Environment
The text was updated successfully, but these errors were encountered: