Whit4D
Explore posts from serversAstro + 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?3 replies