getting-started-app icon indicating copy to clipboard operation
getting-started-app copied to clipboard

fix the bug

Open Sulaiman3352 opened this issue 9 months ago • 0 comments

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' }

Sulaiman3352 avatar Feb 27 '26 20:02 Sulaiman3352