| Platform | Mobile |
| Skill | React Native |
✏️ Error 사진
✏️ Error 이름
error: index.js : cannot find module ‘@babel/plugin-proposal-decorators’
✏️ Error 해결방법
1. Mobx를 설치하고 babel.config.js에 plugins을 추가하지 않으면 발생합니다.
- plug-in 설치
yarn add -D @babel/plugin-proposal-class-properties @babel/plugin-proposal-decorators
- babel.config.js에 해당 내용 추가
plugins: [
["@babel/plugin-proposal-decorators", { "legacy": true }],
// In contrast to MobX 4/5, "loose" must be false! ^
],'Error > React Native' 카테고리의 다른 글
| Build Failed (0) | 2022.11.27 |
|---|---|
| RCTBridge required dispatch_sync to load warning on IOS for React Native (0) | 2022.11.27 |
| No bundle URL present (0) | 2022.11.27 |
| Your Ruby version is x, but your Gemfile specified y (0) | 2022.11.27 |
| cli.init is not a function (0) | 2022.11.27 |