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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript cannot find a declaration file for module @islands/icons #261

Open
2 tasks done
dhruvkb opened this issue Sep 15, 2023 · 0 comments
Open
2 tasks done

TypeScript cannot find a declaration file for module @islands/icons #261

dhruvkb opened this issue Sep 15, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@dhruvkb
Copy link
Contributor

dhruvkb commented Sep 15, 2023

Description 馃摉

With TypeScript v5.2.2, the module resolution has some changes that cause it to not work for @islands/icons (while working for other subpackages just fine!).

This is because @islands/icons uses a different setup compared to other plugins like @islands/headings or @islands/feed. While both @islands/headings and @islands/feed contain a .cjs and a .ts file under src/, @islands/icons contains an .mjs file and a .ts file.

This issue contains some more discussion and potential solutions microsoft/TypeScript#52363. However one potential solution could be to match the structure of the other packages that continue to work after the update.

Dependencies Info

Run npx iles info and pnpm list (or npm list) and provide the output:

iles v0.9.2 vite v4.0.3

Screenshots 馃摲

Screenshot 2023-09-15 at 9 57 39 PM
@ElMassimo ElMassimo added the bug Something isn't working label Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants