shoelace-style/shoelace
View on GitHubTypes cannot be imported with "moduleResolution" set to "bundler"
Open
#2,435 opened on Apr 30, 2025
bughelp wanted
Repository metrics
- Stars
- (13,867 stars)
- PR merge metrics
- (No merged PRs in 30d)
Description
Describe the bug
When using module: "esnext and moduleResolution: "bundler" in TypeScript, the types cannot be imported.
To Reproduce
Steps to reproduce the behavior:
- Set
moduleto"esnext"andmoduleResolutionto"bundler"intsconfig.json - Add
"types": ["@shoelace-style/shoelace/dist/types/vue"] - See an error appear:
Cannot find type definition file for '@shoelace-style/shoelace/dist/types/vue'.
Additional information
The docs tell to use "types": ["@shoelace-style/shoelace/dist/types/vue"] for Vue + TypeScript, but it doesn't work in this specific scenario. Not really sure why.
I'm using shoelace 2.20.1 and typescript 5.8.3