-
Notifications
You must be signed in to change notification settings - Fork 76
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
require(...).loadTsLib is not a function #222
Comments
Just encountered the same issue. Reverting to 1.0.24 indeed works |
Same issue here since vue-tsc v1.1.0. |
Just removing this line can fix: vite-plugin-checker/packages/vite-plugin-checker/src/checkers/vueTsc/prepareVueTsc.ts Line 81 in f65aa71
@fi3ework Does vite-plugin-checker have to maintain this code by itself? |
@johnsoncodehk Thanks for the help. I didn't know the usage clearly so I copied it from https://github.com/vuejs/language-tools/blob/master/packages/vue-tsc/bin/vue-tsc.js before. I'll remove this line soon and release a patch version. I think for now vite-plugin-checker has to maintain by itself because the code to replace is not in a JSON or exported variable nowadays in |
I think there's also something broken in vue-tsc@^1.1.0(see vuejs/language-tools#2403). Use older version before vite-plugin-checker and vue-tsc are all good after 1.1.0. |
vue-tsc@^1.1.3 and vite-plugin-checker@^0.5.6 can work together fine now. |
Yes, I will see how to do it. |
Describe the bug
If vue-tsc@1.1.0 is used, the error above will occur.
It works fine when reverting to vue-tsc@1.0.24.
Reproduction
vite-plugin-checker v0.5.5
vue-tsc v1.1.0
Expected behavior
vite-plugin-checker may need some optimization changes.
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: