You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm test
is unable to find modules/files/etc that have an absolute path such as import { PrismaService } from 'src/common/database/prisma/prisma.service';
Changing this to relative path will work: import { PrismaService } from '../../src/common/database/prisma/prisma.service';
The text was updated successfully, but these errors were encountered:
nestjs/nest#4953 seems to solve this issue, but its unknown if this fix would still work in production.
The PR was not merged, with "Using absolute imports with src included is not recommended and is considered a bad practice." as the reason given by the creator of nestjs.
For reference, some discussion of the reason behind this can be found here: nestjs/typescript-starter#74 (comment). Also in this thread is a solution to enable use of absolute paths in production.
npm test
is unable to find modules/files/etc that have an absolute path such as
import { PrismaService } from 'src/common/database/prisma/prisma.service';
Changing this to relative path will work:
import { PrismaService } from '../../src/common/database/prisma/prisma.service';
The text was updated successfully, but these errors were encountered: