Astro + resolvePackageJsonExports: false
I have a Solid project that I am moving to Astro to get access to SSR.
It uses
lucide-solid
for icons.
Astro was giving me grief about that lucide-solid import saying:
I figured out that I was able to resolve this issue by adding "resolvePackageJsonExports": false,
to tsconfig
compilerOptions
. However, I am a little concerned about the implications of this.
Is there a bug in lucide-solid's package.json
? I see Astro is using bundler
for moduleResolution
while a vanilla Solid project was using node
.
Or... Is this potentially a bug with Astro?2 Replies
May be related to: https://github.com/lucide-icons/lucide/issues/1431
GitHub
Missing types for lucide-solid · Issue #1431 · lucide-icons/lucide
Prerequisites Version: ^0.260.0 Are you running from source/main: no Are you using a released build: yes Operating system: Windows 11 Bits: 64 bits Step to reproduce create a solid project with vit...
I created a bug report: https://github.com/lucide-icons/lucide/issues/1558
GitHub
Astro + Solid + VS Code -> Could not find a declaration file for m...
Package lucide lucide-angular lucide-flutter lucide-preact lucide-react lucide-react-native lucide-solid lucide-svelte lucide-vue lucide-vue-next Figma plugin source/main other/not relevant Version...