Uncaught Error: Dynamic require of "util" is not supported #4842
-
I was using axios 0.27.2 successfully in a React app (built using Vite). Then I decided to extract some reusable axios code into a separate library. Now I get the following error in Chrome Devtools when I run the same app:
Any idea what went wrong? Could it be how I am bundling the library? I am using the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Solved. This was caused by dependencies not being set correctly (this library was being reached through an intermediate dependency which had an issue.) |
Beta Was this translation helpful? Give feedback.
-
so how do i fix? |
Beta Was this translation helpful? Give feedback.
-
same issue with me |
Beta Was this translation helpful? Give feedback.
Solved. This was caused by dependencies not being set correctly (this library was being reached through an intermediate dependency which had an issue.)