Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6.3k
Closed
Labels
Description
Version
3.0.0-beta.9
Reproduction link
Steps to reproduce
- Install Vue with vue-cli,
- Choose Typescript support
- Open any file that imports *.vue files
What is expected?
No errors are reported
What is actually happening?
IDE reports TS2307: Cannot find module error for Vue components imports. Imports are higlighted in red.
I've already reported this error here:vuejs/vue-class-component#219 because I thought that it is avue-class-component issue, but it's not. It's a configuration issue.
Putting the followingvue-shim.d.ts declaration file under my ./src directory solves the problem:
declaremodule"*.vue"{importVuefrom"vue";exportdefaultVue;}
