-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Bug]: Uncaught Error: Dynamic require of "util" is not supported #669
Comments
posted this issue in moralis repo too MoralisWeb3/react-moralis#96 |
I get this same issue, but with a different dynamic require, on the |
@gijoehosaphat for the For my use-case I was able to exclude this from the client bundle by renaming the file to |
I experience this issue when using
|
Following maybe a workaround for some folks: I have the same error, but with I do not import My import in route was: Its only used in Creating a new file, reexporting @ryanflorence |
Experiencing this with
|
I experienced this with the
To overcome it I followed the comment below which patches the @remix-run/dev package. Don't forget to add |
This is seriously broken, I keep encoutering different triggers for this error. Now suddenly totally unrelated routes randomly break, when I use an import in another route. Example, routes:
The workaround re-exporting seem to not work with resource/action routes. On top of it, it breaks all other routes that used the workaround file re-export. Now need to both re-export everything that touches node, aswell as name everything that does so |
Here is a minimal reproduction on remix crashing, when |
@7flash it seems that your problem was fixed upstream, can you confirm? For other commenters, if you're using a package meant to be only used server side, then it must be used in a file with the |
This was the fix for us in the end |
fixed for me 👍 |
What version of Remix are you using?
^1.0.5
Steps to Reproduce
in terminal
npx create-remix@latest
in terminal
npm install moralis react-moralis
in entry.client.jsx
import { MoralisProvider } from "react-moralis";
Expected Behavior
nothing in console
Actual Behavior
error message in console
Uncaught Error: Dynamic require of "util" is not supported
at chunk-ZBXWLNC7.js:13
at node_modules/web3-core-requestmanager/lib/index.js
The text was updated successfully, but these errors were encountered: