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

Not work with CommonJS module system #62

Open
axad1 opened this issue Oct 11, 2023 · 1 comment
Open

Not work with CommonJS module system #62

axad1 opened this issue Oct 11, 2023 · 1 comment

Comments

@axad1
Copy link

axad1 commented Oct 11, 2023

const normalize = require("normalize-mongoose");
^

Error [ERR_REQUIRE_ESM]: require() of ES Module D:\Code\FullStack Todo\todo-backend\node_modules\normalize-mongoose\index.js from D:\Code\FullStack Todo\todo-backend\modal.js not supported.
Instead change the require of index.js in D:\Code\FullStack Todo\todo-backend\modal.js to a dynamic import() which is available
in all CommonJS modules.

@chertik77
Copy link

chertik77 commented Mar 21, 2024

Same issue but with Nest.js & Typescript! What we should do? @abranhe

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

2 participants