Open jakst opened 3 months ago
what are "imports"
, i apologize i'm not familiar, so if you could explain what it does and why u need it, that would help in getting some direction
It's like tsconfig paths
, but standardized. TS started supporting it for auto imports in v5.4, so it just recently became usable for real. This avoids a lot of tooling having to read the tsconfig file just to resolve paths.
You can read more here https://betterprogramming.pub/the-native-way-to-configure-path-aliases-in-frontend-projects-5db70f19a6e0
does vite support it?
Yes. https://github.com/vitejs/vite/issues/7385 https://github.com/vitejs/vite/pull/7770
Not completely sure which Vinxi version is causing the issues, but they started when upgrading from solid-start v0.6.0 to v0.7. Definitely worked with Vite before that.
Ahh okay lemme see what's wrong. If vite supports it we should be able to get it working too
This is still an issue as of 0.3.11
When updating solid-start from v0.6.0 to v0.7 I started getting this crash in the dev server for any page load. Not sure which underlying vinxi package is causing it though.
Turns out it's caused by specifying subpath imports in package.json. Even an empty object will trigger.
package.json
Here's a stackblitz reproduction https://stackblitz.com/edit/solidjs-solid-start-wtwqtu