'bundle.js TypeError: Cannot read propertied of undefined (reading PriceIndexationDataControlStandard)

I am developing a React component via Microsoft PCF Framework and I have encountered a very strange error out of nowhere. I was changing only typescript, not even running any build commands etc. and suddenly the rendering of my component stopped working. I can see error in console: Error screenshot in conosle

The PriceIndexationDataControlStandard is my exported class, I am not sure what could I have done wrong, nor how to fix it.

It seems that the component is undefined in the bundle.js - I believe the framework uses webpack internally for bundling. Does anyone experienced something like this?

Thank you

Edit: running npm build throws no error. neither npm rebuild.



Solution 1:[1]

Turned out it was my mistake. I accidentally removed setting of properties in one of constructors of my wrapper classes.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ssedlacek