nestjs / mapped-types

Configuration module for Nest framework (node.js) 🐺
https://nestjs.com
MIT License
378 stars 59 forks source link

OmitType not respecting deep parent class after compiled to webpack #433

Closed asomethings closed 3 years ago

asomethings commented 3 years ago

I'm submitting a...


[ ] Regression 
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

It respects parent's class but it does not respect parent class's parent class when it's packed to webpack

Expected behavior

It should respect every parent class

Minimal reproduction of the problem with instructions

https://github.com/asomethings/mapped-types-webpack-bug

What is the motivation / use case for changing the behavior?

Well, I have a lot of multiple base classes and use them extending a lot. So I hope the bug gets fixed.

Environment


Nest version: 8.0.9


For Tooling issues:
- Node version: 14
- Platform:  Linux Ubuntu 20.04

Others:            
kamilmysliwiec commented 3 years ago

image

Tested on a pure NestJS typescript-starter and it works fine. This must be caused by your webpack configuration.

Please, use our Discord channel (support) for such questions. We are using GitHub to track bugs, feature requests, and potential improvements.