notiz-dev / nestjs-prisma

Easy Prisma support for your NestJS application
https://nestjs-prisma.dev
MIT License
572 stars 49 forks source link

error TS2307: Cannot find module '@nestjs-prisma' or its corresponding type declarations. #75

Closed jymchng closed 1 year ago

jymchng commented 1 year ago

I was following the guide to create my own extension for Prisma used in NestJS, but I encounter this error:

src/app.module.ts:11:36 - error TS2307: Cannot find module '@nestjs-prisma' or its corresponding type declarations.

11 import { CustomPrismaModule } from '@nestjs-prisma';
                                      ~~~~~~~~~~~~~~~~
marcjulian commented 1 year ago

hi @jymchng remove the @ prefix and the import should work.

import { CustomPrismaModule } from 'nestjs-prisma';