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
When trying to import Vue files from a dependency package that contains an "exports" field in its package.json. While I am able to successfully import the files in my project, I am unable to find the associated TS type declarations.
I can't pinpoint the source of the problem.
I have a feeling that this might be a problem with vite-plugin-vue.
### Used Package Manager
pnpm
### Logs
_No response_
### Validations
- [X] Follow our [Code of Conduct](https://github.com/vitejs/vite/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guidelines](https://github.com/vitejs/vite/blob/main/CONTRIBUTING.md).
- [X] Read the [docs](https://vitejs.dev/guide).
- [X] Check that there isn't [already an issue](https://github.com/vitejs/vite-plugin-vue/issues) that reports the same bug to avoid creating a duplicate.
- [X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to [vuejs/core](https://github.com/vuejs/core) instead.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vitejs/vite-plugin-vue/discussions) or join our [Discord Chat Server](https://chat.vitejs.dev/).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
The text was updated successfully, but these errors were encountered:
Related plugins
plugin-vue
plugin-vue-jsx
Describe the bug
When trying to import Vue files from a dependency package that contains an "exports" field in its package.json. While I am able to successfully import the files in my project, I am unable to find the associated TS type declarations.
I can't pinpoint the source of the problem.
I have a feeling that this might be a problem with
vite-plugin-vue
.Reproduction
https://stackblitz.com/edit/vitejs-vite-wkgkc1?file=src%2FApp.vue,node_modules%2Ffoo%2Fpackage.json,node_modules%2Ffoo%2Fbar.vue&terminal=dev
Steps to reproduce
We need to download this project and run it locally to reproduce the problem.
TS doesn't work with "exports" field in the “foo/package.json”
But, this path works.
System Info
The text was updated successfully, but these errors were encountered: