javascript
-
[react-native] Error build-assets - new decorators proposal is not supported yet. You must pass the"legacy": true optionjavascript/react-native 2018. 12. 9. 23:48
[react-native Trouble Shooting] Problem> mobx 라이브러리를 사용하기 위해 decorator를 사용해야 했었는데 빌드 도중 다음 에러가 났다. Error build-assets - new decorators proposal is not supported yet. You must pass the"legacy": true option Solution1. @babel/plugin-proposal-decorators를 설치 1npm install --save-dev @babel/plugin-proposal-decoratorscs 2. tsconfig.json 파일에 다음 라인을 입력 1["@babel/plugin-proposal-decorators", { "legacy": tr..
-
[react-native] bundling failed: Error: Unable to resolve module `./../react-transform-hmr/lib/index.jsjavascript/react-native 2018. 12. 9. 23:33
[react-native Trouble Shooting] Problem> error: bundling failed: Error: Unable to resolve module `./../react-transform-hmr/lib/index.js Solution> 캐시를 클린해야함 1234rm -rf $TMPDIR/react-*; rm -rf $TMPDIR/haste-*; rm -rf $TMPDIR/metro-*; watchman watch-del-all # Start Metro Bundler directlyreact-native startColored by Color Scriptercs 참고: https://github.com/facebook/react-native/issues/21490