We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build failes with 1 module not found error:
Module not found: Error: Can't resolve 'class-transformer/storage' in ...
https://gist.github.com/yifanwww/0e843ee0d5ba66a2dfd34fe3300c66bf
nest new test
class-validator
class-transformer
@nestjs/mapped-types
nest-cli.json
module.exports = { externals: [], };
import { IntersectionType } from '@nestjs/mapped-types'; class DtoA {} class DtoB {} class DtoC extends IntersectionType(DtoA, DtoB) {} DtoC;
npm run build
lib/compiler/defaults/webpack-defaults/ts should be upgraded as following shows
lib/compiler/defaults/webpack-defaults/ts
const lazyImports = [ '@nestjs/microservices', '@nestjs/microservices/microservices-module', '@nestjs/websockets/socket-module', 'class-validator', 'class-transformer', + 'class-transformer/storage', ];
10.4.8
10.3.8
20.17.0
similar to this issue relevant to this issue
The text was updated successfully, but these errors were encountered:
Would you like to create a PR for this issue?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Is there an existing issue for this?
Current behavior
Build failes with 1 module not found error:
Minimum reproduction code
https://gist.github.com/yifanwww/0e843ee0d5ba66a2dfd34fe3300c66bf
Steps to reproduce
nest new test
class-validator
,class-transformer
and@nestjs/mapped-types
nest-cli.json
to switch builder to webpack (according to https://docs.nestjs.com/cli/monorepo#global-compiler-options)npm run build
produces 1 errorExpected behavior
lib/compiler/defaults/webpack-defaults/ts
should be upgraded as following showsconst lazyImports = [ '@nestjs/microservices', '@nestjs/microservices/microservices-module', '@nestjs/websockets/socket-module', 'class-validator', 'class-transformer', + 'class-transformer/storage', ];
Package version
10.4.8
NestJS version
10.3.8
Node.js version
20.17.0
In which operating systems have you tested?
Other
similar to this issue
relevant to this issue
The text was updated successfully, but these errors were encountered: