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

Error [ERR_REQUIRE_ESM]: require() of ES Module #48

Open
Gradlon opened this issue Dec 22, 2023 · 0 comments
Open

Error [ERR_REQUIRE_ESM]: require() of ES Module #48

Gradlon opened this issue Dec 22, 2023 · 0 comments

Comments

@Gradlon
Copy link

Gradlon commented Dec 22, 2023

Superjson repo updated the codebase recently and changed.

The error was,

api:start:dev: const superjson = require('superjson');
api:start:dev:                   ^
api:start:dev: Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/gradlon/Desktop/fad-stack/node_modules/superjson/dist/index.js from /Users/gradlon/Desktop/fad-stack/node_modules/@soundxyz/redis-pubsub/dist/index.js not supported.
api:start:dev: Instead change the require of /Users/gradlon/Desktop/fad-stack/node_modules/superjson/dist/index.js in /Users/gradlon/Desktop/fad-stack/node_modules/@soundxyz/redis-pubsub/dist/index.js to a dynamic import() which is available in all CommonJS modules.
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

1 participant