Skip to content

fix the bug#104

Open
Sulaiman3352 wants to merge 1 commit intodocker:mainfrom
Sulaiman3352:main
Open

fix the bug#104
Sulaiman3352 wants to merge 1 commit intodocker:mainfrom
Sulaiman3352:main

Conversation

@Sulaiman3352
Copy link

fix the next error massage:

/app/src/routes/addItem.js:2
const {v4 : uuid} = require('uuid');
^

Error [ERR_REQUIRE_ESM]: require() of ES Module /app/node_modules/uuid/dist-node/index.js from /app/src/routes/addItem.js not supported. Instead change the require of index.js in /app/src/routes/addItem.js to a dynamic import() which is available in all CommonJS modules.
at Object. (/app/src/routes/addItem.js:2:21)
at Object. (/app/src/index.js:5:17) {
code: 'ERR_REQUIRE_ESM'
}

fix the next error massage: 
/app/src/routes/addItem.js:2
const {v4 : uuid} = require('uuid');
                    ^

Error [ERR_REQUIRE_ESM]: require() of ES Module /app/node_modules/uuid/dist-node/index.js from /app/src/routes/addItem.js not supported.
Instead change the require of index.js in /app/src/routes/addItem.js to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (/app/src/routes/addItem.js:2:21)
    at Object.<anonymous> (/app/src/index.js:5:17) {
  code: 'ERR_REQUIRE_ESM'
}
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

Successfully merging this pull request may close these issues.

1 participant