-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Cannot read property '__H' of undefined #61
Comments
Hi having the same issue, this is caused by webpack in next js importing different module files from preact/compat This plugin has some kind of "fix" for it, but looks like it's not working |
thank you for fast reply what kind of fix ? |
Same, getting error mentioned above when using npm run build.
|
temporary fix would be to disable esmExternals in next.config.js experimental: { |
Wow thanks @quadrifolia this fixes it for me!!! |
Could you elaborate a bit on what this does? :) |
+1 on what exactly this fix is doing |
I'm not sure if this fix is the cause of my problem, but I've had massive memory leaks when building uusing esmExternals: false. |
Hey :)
im testing preact with next.js and its ok. but when i tried to add some dependency(react-hook-form) and build
"Cannot read property '__H' of undefined" appears!
preactjs + react-hook-form ---> working wihtout any errors
next.js + preactjs + react-hook-form --->Cannot read property '__H' of undefined
packages are latest version
The text was updated successfully, but these errors were encountered: