-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 when using solid.js packages: web.template is not a function #4652
Comments
You likely need to use |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
@matthewp When I use |
Another example with |
Looks like #5059 didn't fully fix that, we may need to recursively But even with that configuration, I'm getting:
which may be another issue. |
Actually it seems like that error doesn't happen anymore, might be a fluke. I'll be automating the workaround for this PR by updating |
That's awesome. Thank you for taking the time to fix this. I'm gonna close this issue. Feel free to re-open it if you think it's not fully fixed. Unfortunately, I'm super busy and can't test it out. Maybe @thetarnav can test it. Thank you again. |
The solid-primitives/props has been changed in the last version to not ship JSX. |
Yeah I'll still need to automate the |
I was able to replicate the |
I have the same issue when testing a function for solid.
here's the repo https://github.com/adharshmk96/solid-hook-form |
This error occurs, Please re open this issue, as I am getting this error with a package I published on github which contains solid jsx |
@matthewp Here's a reproducer This also happens with solid-start when UPDATEhas been fixed, It was an issue with the library, I am using tsup now which fixes this issue ! tsup packages the library real nice. |
What version of
astro
are you using?1.2.1
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
yarn classic
What operating system are you using?
Linux
Describe the Bug
When I want to use Solid.js packages that are using
@solid-primitives/props
package internally, like@solid-aira/focus
and@motionone/solid
, I get this error:It works fine when I use
@solid-primitives/props
directly. The error only happens when it's a transitive dependency. Also adding the package tovite.ssr.noExternal
doesn't help.Link to Minimal Reproducible Example
Here is an example with
@motionone/solid
https://stackblitz.com/edit/github-lepeza
Participation
The text was updated successfully, but these errors were encountered: