andriimiroshnychenko

Results comments of andriimiroshnychenko

## Update: This isn't MobX specific issue, it's related to general Babel compilation error. ## Original comment Hi! Another interesting bug here ;) Despite of suggested plugins ordering solution decorators...

@mweststrate you're totally right, this is not MobX-generated error, other decorators usage will cause same error. Sorry for not stating it in my message. I wrote it just for people,...

In my small repo with this config ``` plugins: [ ['@babel/plugin-proposal-decorators'], ['@babel/plugin-proposal-class-properties'] ] ``` I got this error ``` Module build failed: Error: [BABEL] /home/amiro/project/small-repro/src/index.js: The decorators plugin requires a...

thanks, but unfortunately with `this` I can reference only non-`static` properties, belonged to the instance of the class, not class itself. This will lead to some refactoring + will create...

This can help if "lazy" property initialization is allowed in code. Because ``` class Foo { static x = this; } ``` is meaningless in terms of assigning `this` to...