Reputation: 3
Failed to compile. /Users/mohdjabiuddin/MNCL.DEV/MY-PROJECTS/renter-graphql/app/node_modules/react-native/Libraries/Network/XMLHttpRequest.js Module not found: Can't resolve './RCTNetworking' in '/Users/jabiuddin/MNCL.DEV/MY-PROJECTS/renter-graphql/app/node_modules/react-native/Libraries/Network'
Upvotes: 0
Views: 1659
Reputation: 1609
You probably have a problem with reactotron
, I had the same problem with Ignite boilderplate from Infinite Red.
If so, you should install reactotron version for web.
Install reactotron-react-js
and import it instead of reactotron-react-native
:
yarn add -D reactotron-react-js
// import Tron from "reactotron-react-native"
import Tron from "reactotron-react-js"
Install reactotron-react-js
:
yarn add -D reactotron-react-js
Add separate configuration for web
and native
// reactotron.native.ts
import Tron from "reactotron-react-native"
...
// reactotron.web.ts
import Tron from "reactotron-react-js"
...
Thanks to metro bundle this configuration will be loaded depend on environment. Maybe you have to comment some other configuration (depends on Ignite version).
Upvotes: 1