You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the issue is related to 1.x -> 2.0 upgrade, read the Migration Guide first.
Describe the bug
Solid uses jsx files as entry point to be able to compile the source to different target (ssr or client). We recommend users to make the source available under a solid export mapping like so:
Describe the bug
Solid uses
jsx
files as entry point to be able to compile the source to different target (ssr or client). We recommend users to make the source available under asolid
export mapping like so:Through the Vite plugin for Solid, we resolve that export mapping.
It appears that on some dependencies Vite fails to parse it. I pulled the latest master locally and added some logs. I traced it back to this line: https://github.com/vitejs/vite/blob/main/packages/vite/src/node/optimizer/index.ts#L206.
Here's an example of the content causing the parsing issue: https://gist.github.com/amoutonbrady/e0ca61c8907d44b18e3631a3490a9ca8.
Here's the
package.json
of the package that causes the parsing issue: https://github.com/ryansolid/solid/blob/master/packages/solid-meta/package.json.Reproduction
Here is a link to a small reproduction project: https://github.com/amoutonbrady/vite-parsing-reproduction.
Note that we are using
Solid
plugin but since the error happens in the pre-optimization part, this is not relevant as plugins hasn't been loaded yet.System Info
vite
version: 2.0.1Logs (Optional if provided reproduction)
vite
orvite build
with the--debug
flag.The text was updated successfully, but these errors were encountered: