-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Dynamic require of "xxx" is not supported #3509
Comments
Typically this happens when you bundle code that does something like To fix this, you need to either not mark <script>
window.require = function(name) {
if (name === "react") {
return window.globalReactObjectFromSomewhere
}
throw Error("Don't know how to require " + name)
}
</script> |
Thank you for your reply。I understand its working principle,This is my solution:
|
but I think this is esbuild should solve,this make me very uncomfortable |
it's my code:
it's my config:
code run error:
Error: Dynamic require of "react" is not supported
Error: Dynamic require of "react-dom" is not supported
I want to why?
how can fix?
The text was updated successfully, but these errors were encountered: