Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report][3.3.0] "Could not find a declaration file for module" when using "moduleResolution": "bundler" #17421

Closed
Llois41 opened this issue May 22, 2023 · 1 comment
Assignees
Labels
T: bug Functionality that does not work as intended/expected typescript
Milestone

Comments

@Llois41
Copy link

Llois41 commented May 22, 2023

Environment

Vuetify Version: 3.3.0
Vue Version: 3.3.4
Browsers: Chrome 109.0.0.0
OS: Mac OS 10.15.7

Steps to reproduce

  1. yarn add all the stuff the installation page suggests
  2. try to import e.g. createVuetify as a named import from 'vuetify'
  3. see error in IDE or run tsc:
TS7016: Could not find a declaration file for module
'vuetify'. <...>/b-informed/node_modules/vuetify/lib/framework.mjs' implicitly has an 'any' type.
There are types at '<...>/b-informed/node_modules/vuetify/lib/index.d.mts', but this result could
not be resolved when respecting package.json "exports".
The 'vuetify' library may need to update its package.json or typings.

Expected Behavior

Type imports resolve corretly work and TS shows no error

Actual Behavior

see reproduction section

Reproduction Link

https://github.com/Llois41/b-informed

Other comments

Also tried vuetify@3.2.0 and got the same error

@Llois41 Llois41 changed the title [Bug Report][3.3.0] Path of types and package.json "exports" field seem to not match [Bug Report][3.3.0] Path of types and package.json "exports" field seem to not match when using "moduleResolution": "bundler" May 22, 2023
@KaelWD
Copy link
Member

KaelWD commented May 22, 2023

#17319 (comment)

@KaelWD KaelWD closed this as completed May 22, 2023
@KaelWD KaelWD added T: bug Functionality that does not work as intended/expected typescript labels May 22, 2023
@KaelWD KaelWD added this to the v3.3.x milestone May 22, 2023
@KaelWD KaelWD self-assigned this May 22, 2023
@KaelWD KaelWD pinned this issue May 22, 2023
@KaelWD KaelWD changed the title [Bug Report][3.3.0] Path of types and package.json "exports" field seem to not match when using "moduleResolution": "bundler" [Bug Report][3.3.0] "Could not find a declaration file for module" when using "moduleResolution": "bundler" May 22, 2023
@KaelWD KaelWD unpinned this issue Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: bug Functionality that does not work as intended/expected typescript
Projects
None yet
Development

No branches or pull requests

2 participants