Closed stonetwig closed 7 months ago
Someone mentioned this on our Slack, looks like it's a bug in Vite.
Can you add preact-render-to-string
to your project and test that? It's an optional peer dep of preact-iso
, but it's only used if you've set up prerendering. It seems Vite is incorrectly trying to access it.
The problem seems to occur when I generate a project with router configuration files. Sure I can test that!
Can you add preact-render-to-string to your project and test that?
This solved the issue, now I can build just fine. Thank you for the insanely quick answer.
Glad it helped! Sorry for the inconvenience.
Might need to make an issue upstream in Vite, this seems to be a regression in the latest version.
Then I just run build and get a failure:
Not sure on how to fix this since it seems like there is a method that is not being exported properly?
Node version: v18.17.1
Tried to updated to v20.12.1 but with the same results.
Thanks