nestjs-api-tutorial icon indicating copy to clipboard operation
nestjs-api-tutorial copied to clipboard

Prisma Error

Open SeanJuice opened this issue 3 years ago • 0 comments

I am getting this error when trying to run nest js

Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\shaun\node_modules@angular\core\fesm2015\core.mjs not supported. Instead change the require of C:\Users\shaun\node_modules@angular\core\fesm2015\core.mjs to a dynamic import() which is available in all CommonJS modules. at Object. (C:\Users\shaun\OneDrive\Documents\MY PROJECTS\Nestjs\tutorial- frecodecamp\bookmark-api\dist\prisma\prisma.service.js:13:16)
at Object. (C:\Users\shaun\OneDrive\Documents\MY PROJECTS\Nestjs\tutorial- frecodecamp\bookmark-api\dist\prisma\prisma.module.js:11:26)
at Object. (C:\Users\shaun\OneDrive\Documents\MY PROJECTS\Nestjs\tutorial- frecodecamp\bookmark-api\dist\app.module.js:14:25) at Object. (C:\Users\shaun\OneDrive\Documents\MY PROJECTS\Nestjs\tutorial- frecodecamp\bookmark-api\dist\main.js:4:22)

SeanJuice avatar Apr 18 '22 13:04 SeanJuice