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
$ mkdir fresh; cd fresh
$ npm i [email protected]
$ echo "import * as v from 'vue'" >index.ts
$ tsc index.ts --target esnext --moduleResolution node
What is expected?
No errors
What is actually happening?
Error from tsc:
node_modules/vue/types/vue.d.ts(17,41): error TS2307: Cannot find module 'v3-component-public-instance' or its corresponding type declarations.
Found in various vue 2 dependents on Definitely Typed's overnight test run.
'v3-component-public-instance' is a local module, so the reference should be './v3-component-public-instance'
When editing vue.d.ts inside the vue repo, tsconfig is set up such that 'v3-component-public-instance' also resolves, but this doesn't work when vue is imported normally.
The text was updated successfully, but these errors were encountered:
Version
2.7.6
Reproduction link
dev.azure.com
Steps to reproduce
Install [email protected] and try to compile with typescript:
What is expected?
No errors
What is actually happening?
Error from tsc:
node_modules/vue/types/vue.d.ts(17,41): error TS2307: Cannot find module 'v3-component-public-instance' or its corresponding type declarations.
Found in various vue 2 dependents on Definitely Typed's overnight test run.
'v3-component-public-instance' is a local module, so the reference should be './v3-component-public-instance'
When editing vue.d.ts inside the vue repo, tsconfig is set up such that 'v3-component-public-instance' also resolves, but this doesn't work when vue is imported normally.
The text was updated successfully, but these errors were encountered: