npm start之后报错
####报错信息:
./src/index.js
Module build failed: Error: The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'.```
### 解决:
- 网上说的:<br>
- ```.babelic文件 修改```
{
"presets": [
"module:metro-react-native-babel-preset",
"@babel/preset-flow"
],
"plugins": [
["@babel/plugin-proposal-decorators", { "legacy" : true }]
]
}
- 更新以使用这些插件的Babel 7版本,例如@babel/plugin-proposal-decorators和@babel/plugin-proposal-class-properties
## 都不起作用!!大佬来帮帮我!!