Reputation: 4705
There is nothing wrong with my folder structure or code.
However, after one time I change my folder name, Vetur keeps yelling this message to me.
I've tried the following things
but the problem still there, how can I fix it?
2022 August Update:
It could still be reproducible, but the error description may differ; the reproduction:
Example.vue.
Example.vue
into some other fileExample.vue
to example.vue
example.vue
as well.Upvotes: 12
Views: 13156
Reputation: 89
You can try setting the following properties in tsconfig.json
{
"compilerOptions": {
"forceConsistentCasingInFileNames": false,
}
}
Upvotes: 1
Reputation: 6973
I was facing the same issue, just restart or reload your vscode
Upvotes: 0
Reputation: 458
(Using vue.js v3) My solution was NOT to use the file extension '.vue':
Failed:
import X from './components/X.vue'
Succeeded:
import X from './components/X'
Upvotes: 11