Closed ankoh closed 7 months ago
@joshblack since this was introduced with #1008
Thanks for taking the time to make this issue @ankoh! Really appreciate it. Opened a PR over at: https://github.com/primer/octicons/pull/1020 to (hopefully) address this 👍
Typescript projects using the moduleResolution
NodeNext
ornode16
cannot consume@primer/octicons-react
19.9.0 (and transitively@primer/react
36.13.0, regressing from 36.12.0) since the icons type definition is not imported with a file extension.The import will just fail and, when peeking into the index.d.mts, you'll find the error:
Patch that worked for me on dist:
I guess it's just https://github.com/primer/octicons/blob/main/lib/octicons_react/src/index.d.ts