-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
error bundle axios,superagent Uncaught Error: Dynamic require of "util" is not supported #709
Comments
Maybe the above |
[ERROR] Expected "}" but found "file"
|
It's an related issue with evanw/esbuild#1921, you can try the mentioned solution. |
I also have the same problem. Have you fixed it |
this is my tsup.config |
Did you solve it |
|
you need |
had add external, but it not work for me |
I don't think there is a clear answer. Still running into the same problem. i use tsup in my ci/cd pipeline
I don't have a tsup.config file. Should i add one and if so what should i add to get rid of the error. |
This doesn't seem to work |
Uncaught Error: Dynamic require of "util" is not supported
at index.mjs:12:9
at ../../node_modules/combined-stream/lib/combined_stream.js (index.mjs:2776:16)
at __require2 (index.mjs:15:17)
at ../../node_modules/axios/node_modules/form-data/lib/form_data.js (index.mjs:11791:26)
at __require2 (index.mjs:15:17)
at ../../node_modules/axios/lib/defaults/env/FormData.js (index.mjs:12104:22)
at __require2 (index.mjs:15:17)
at ../../node_modules/axios/lib/defaults/index.js (index.mjs:12200:19)
at __require2 (index.mjs:15:17)
at ../../node_modules/axios/lib/core/transformData.js (index.mjs:12226:20)
"build": "tsup src/index.ts --format esm,cjs --dts --external react axios ",
"dev": "tsup src/index.ts --format esm,cjs --watch --dts --external react axios",
The text was updated successfully, but these errors were encountered: