I think I had this issue before. Just to confirm with you, do you have vue-shim.d.ts file generated by the CLI? Because the way the CLI set up the webpack is that the compiler needed that shim since the .vue files are not recognizable. This is the content of the file:
I think I had this issue before. Just to confirm with you, do you have
vue-shim.d.tsfile generated by the CLI? Because the way the CLI set up the webpack is that the compiler needed that shim since the.vuefiles are not recognizable. This is the content of the file:Related issue: github.com/vuejs/vue-cli/issues/1198
If it's already there, then it might be a different issue... Let me know.
Hi briwa,
I have a
shims-vue.d.tsfile rather than avue-shim.d.ts, which has the same content.I just tried renaming to
vue-shim.d.tsbut makes no difference.Noticed on here Microsoft vue TypeScript Starter that its
shimsrather thanshim, tried that and same error.So I'm confused, should it be
vue-shim.d.ts,vue-shims.d.tsorshims-vue.d.tsThis is my file structure
I'm sure my
shims-vue.d.tswas generated by the vueui client so I'd hope that was right.Any suggestions on what to try now?
Thanks,
Dale
Actually the file name doesn't matter as long as it's there with the
.d.ts. Now I'm not too sure what caused yours.