We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Repro: https://github.com/lfre/preact-render-to-string-issue
preact-render-to-string 5.2.4+ throws errors in Development mode. Three things cause this:
preact-render-to-string
esmExternals
false
preact/debug
function MyComponent({ name }) { return <div>My {name}</div> }
The text was updated successfully, but these errors were encountered:
Same issue on my end, in my case import useSWR from 'swr' is the cause (as opposed to preact-render-to-string )
import useSWR from 'swr'
Sorry, something went wrong.
Confirming this is fixed on preact-render-to-string 5.2.6 👍
No branches or pull requests
Repro: https://github.com/lfre/preact-render-to-string-issue
preact-render-to-string
5.2.4+ throws errors in Development mode. Three things cause this:esmExternals
experiment property is set tofalse
. This is needed to resolve related issues: ESM imports in Next.js >= 12 break page rendering (hooks etc.) #53 Nextjs + Preact + Webpack 5 | Error: Hook can only be invoked from render methods #25preact/debug
entry added in development. RefThe text was updated successfully, but these errors were encountered: