Adding instructions for Typescript/Babel 7 setup #300
Labels
Community 👨👧
Something initiated by a community
Documentation 📖
Issues about docs
Help Wanted 🆘
Extra attention is needed
Currently this framework does not work with Babel 7 and
@babel/preset-typescript
setup, the reasons are:1- Parameter decorators is not supported by
@babel/plugin-proposal-decorators
2- Babel strips type information thus
Reflect.getMetadata()
returns undefined, more explanation urlAfter spending few hours to come to this conclusion i solved these issues by installing this babel plugin
babel-plugin-transform-typescript-metadata
urlI liked this framework and i almost gave up on it because of these issues,
It will be good to include this in the installation guide, to make it easy for developers with Babel 7 and
@babel/preset-typescript
setup which is a common setup.Thanks
The text was updated successfully, but these errors were encountered: