Skip to content
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

Uncaught Error: Dynamic require of "util" is not supported #2113

Open
haozi opened this issue Mar 19, 2022 · 2 comments
Open

Uncaught Error: Dynamic require of "util" is not supported #2113

haozi opened this issue Mar 19, 2022 · 2 comments

Comments

@haozi
Copy link

haozi commented Mar 19, 2022

when i use format: 'esm' config at dev watch model

at unsupportedIterableToArray.js:9
    at ../../.eden-mono/temp/node_modules/.pnpm/[email protected]/node_modules/object-inspect/util.inspect.js (util.inspect.js:1)
    at __require22 (index.tsx:4)
    at ../../.eden-mono/temp/node_modules/.pnpm/[email protected]/node_modules/object-inspect/index.js (index.js:68)
    at __require22 (index.tsx:4)
    at ../../.eden-mono/temp/node_modules/.pnpm/[email protected]/node_modules/side-channel/index.js (index.js:5)
    at __require22 (index.tsx:4)
    at ../../.eden-mono/temp/node_modules/.pnpm/[email protected]/node_modules/qs/lib/stringify.js (stringify.js:3)
    at __require22 (index.tsx:4)
    at ../../.eden-mono/temp/node_modules/.pnpm/[email protected]/node_modules/qs/lib/index.js (index.js:3)

image

@hyrious
Copy link

hyrious commented Mar 19, 2022

Related PR: #2067

For now, you can use a plugin to just rewrite that file to replace "require(node-module)" to a toplevel static import statement.

@cinderblock
Copy link

Duplicate of #1921, I think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants