ElMassimo / ElMassimo/iles

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

Open
#261 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
1.2k
Forks
36
PR merge metrics
No merged PRs in 30d

Description

[troubleshooting section]: https://iles-docs.netlify.app/faqs/troubleshooting

- [x] I have read the __[troubleshooting section]__ before opening an issue.
- [x] I have tried upgrading `iles` and `vite`.

### 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 https://github.com/microsoft/TypeScript/issues/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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.