-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: require() of ES Module not supported #75
Comments
@thetarnav maybe it's because the two packages are not built the same way ? In |
I had some weird issues with the package resolution in Astro. by the way, what's the current reason for using rollup? Do solid-aria ships jsx in any packages? Aren't those all primitives? |
Yes some packages ship jsx |
what's funny is if I remove solid-aria and use @solid-primitives/props directly, it works. |
Yeah. Actually, I opened an issue in the Astro repo a few hours ago about that. I thought the problem was |
sadly it doesn't seem to be fixed anytime soon. |
Yes, the focus package export a Stupid question, does it works with solid-start or it's broken on all ssr environment ? 🤨 |
I'm too over it for today to test solid-start :P |
I just encountered the issue using Solid Start (while updating to 0.2.5). I'm using |
@jchatard I think solidjs/vite-plugin-solid#68 fixed it. Probably solid-start is not using the latest version of |
@ahhshm I created a repro forcing vite-plugin-solid 2.4.0 and it fires the same error in package.json (at the bottom) https://github.com/jchatard/web_template_is_not_a_function/blob/main/package.json I get the following error:
|
But adding: "pnpm" : {
"overrides": {
"@solid-primitives/props": "3.0.1", // <-- this guy
"vite-plugin-solid": "2.4.0"
}
} Now it works. |
I am running into this issue as well. Based on the errors, it seems that since the package.json file has |
I'm trying to use solid-aria in Astro but I get :
Any idea why that happens?
I'm getting this error only when using solid-aria so I asked here instead of the Astro server, And it doesn't look like an Astro issue.
Here is a small stackblitz to reproduce. The error is slightly different here but I think it's the same thing.
https://stackblitz.com/edit/github-7cxbsf?on=stackblitz
The text was updated successfully, but these errors were encountered: