表題の通りですが、iOSのReactNativeアプリをNuclideやVSCodeでデバッグ中に
Missing Realm constructor - please ensure RealmReact framework is included!
というエラーが出て困っています。
コマンドラインでnpm startを叩いてChromeのデバッガを使えば正常に動くのですが、
VSCodeのデバッガが使いやすいので、出来ればVSCodeでデバッグしたいと思います。
また、VSCodeで実行中でもRemote JS Debuggingを解除すれば正常に動きます。
恐らくVSCodeでデバッグしている時に何故かRealmライブラリを読み込まない設定になっていると
思うのですが、解決策等ご存知の方にご教示頂きたいと思います。
以下package.jsonです。
JSON
1{ 2 "name": "ReactApp", 3 "version": "0.0.1", 4 "private": true, 5 "scripts": { 6 "start": "node node_modules/react-native/local-cli/cli.js start", 7 "test": "jest --coverage" 8 }, 9 "dependencies": { 10 "@exponent/react-native-navigator": "^0.4.7", 11 "html-entities": "^1.2.0", 12 "querystring": "^0.2.0", 13 "react": "15.3.2", 14 "react-native": "0.32.0", 15 "react-native-button": "^1.6.0", 16 "react-native-loading-spinner-overlay": "^0.3.0", 17 "react-native-scrollable-tab-view": "^0.6.0", 18 "react-native-tab-navigator": "^0.3.2", 19 "realm": "^0.14.3" 20 }, 21 "devDependencies": { 22 "babel-jest": "^15.0.0", 23 "babel-preset-react-native": "^1.9.0", 24 "jest": "^15.1.1", 25 "jest-react-native": "^15.0.0", 26 "react-test-renderer": "^15.3.2" 27 }, 28 "jest": { 29 "preset": "jest-react-native" 30 } 31} 32
よろしくお願いします!
あなたの回答
tips
プレビュー