-
-
Notifications
You must be signed in to change notification settings - Fork 420
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
v2.0.11 and later, In typescript files, importing .vue files yields "Cannot find module" error #4288
Comments
No, not that I can see. |
It looks like the problem with the "Hybrid Mode" setting. It was set to False. When I set it to true, the errors were no longer occurring. |
You can also revert it to the default "auto" to avoid compatibility issues. (See #4206) |
@johnsoncodehk Is this the limitation of Hybrid Mode? If so, it would be helpful if that is explicitly stated in README. |
@ypresto When you met this issue could you please show the panel? I suppose this was caused by typescript not being loaded correctly in vue files and often there is no typescript version information in the panel. |
In v2.0.11 and later, any typescript file that attempts to import a .vue file results in the error message in the following screenshot:
Cannot find module <module> or it's corresponding type declarations
The most obvious case of this happening is in the main.ts when attempting to import App.vue in a default project. However, it happens in any .ts file.
Reverting back to 2.0.10 fixes the issue. The error starts occurring in 2.0.11.
The text was updated successfully, but these errors were encountered: