You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
you will get an error show that cannot find module ./src/non-existance-path/unknowfile.ts
but when if import *.vue single file modules
for instance in index.ts
// this is valid importimportHelloDecoratorComponentfrom"./components/HelloDecorator.vue";// this is invalid import because there is no file "./components/HelloDeccorator.vue"importHelloDecoratorComponent2from"./components/HelloDeccorator.vue";// this is invalid import because there is no file "./components/HelloDecorator_wtfisthisJKLQ#H@!*(.vue"importHelloDecoratorComponent2from"./components/HelloDecorator_wtfisthisJKLQ#H@!*(.vue";
the second import is invalid because of the import name typo (double c in deCCorator.vue), also the third one is invalid too.
I know that .vue file type is defined in vue-shims.d.ts,
but typescript engine doesn't resolve these file paths, and there is no error report when coding index.ts as you have import typo causes an invalid import.
is it possible to let typescript engine resolve these .vue file paths?
The text was updated successfully, but these errors were encountered:
@Merott im using eslint with typescript-eslint-plugin and eslint-import-plugin to lint those imports right now. Once have mistyped imports eslint will report it
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
if you import an non-existance typescript module like this
you will get an error show that
cannot find module ./src/non-existance-path/unknowfile.ts
but when if import *.vue single file modules
for instance in index.ts
the second import is invalid because of the import name typo (double c in deCCorator.vue), also the third one is invalid too.
I know that .vue file type is defined in vue-shims.d.ts,
but typescript engine doesn't resolve these file paths, and there is no error report when coding index.ts as you have import typo causes an invalid import.
is it possible to let typescript engine resolve these .vue file paths?
The text was updated successfully, but these errors were encountered: