nest new test
- add/install
class-validator
,class-transformer
and@nestjs/mapped-types
- update
nest-cli.json
to switch builder to webpack (according to https://docs.nestjs.com/cli/monorepo#global-compiler-options) - create webpack.config.js with following contents (according to https://docs.nestjs.com/cli/monorepo#webpack-options):
module.exports = {
externals: [],
};
- add the following code to src/main.ts
import { IntersectionType } from '@nestjs/mapped-types';
class DtoA {}
class DtoB {}
class DtoC extends IntersectionType(DtoA, DtoB) {}
DtoC;
npm run build
produces 1 error
Module not found: Error: Can't resolve 'class-transformer/storage' in ...