react-app-rewire-babel-loader | Rewire babel-loader loader | Frontend Framework library
kandi X-RAY | react-app-rewire-babel-loader Summary
kandi X-RAY | react-app-rewire-babel-loader Summary
Rewire babel-loader loader in your create-react-app project using react-app-rewired.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of react-app-rewire-babel-loader
react-app-rewire-babel-loader Key Features
react-app-rewire-babel-loader Examples and Code Snippets
Community Discussions
Trending Discussions on react-app-rewire-babel-loader
QUESTION
I am trying to setup a monorepo with react and react native app using a yarn workspaces.
My problem is with mobx (and react-mobx) library. When I use it in the shared package it does not work.
Here is the simple component in the shared library. It should just render a button and number and increment the number when the text is clicked:
...ANSWER
Answered 2019-Feb-04 at 11:31I've figured it out. I needed to add mobx-react
into nohoist
of the root package.json
file (see the snippet bellow). I had to tweak the native configuration lite bit (I've used react-native-monorepo-helper). The app now works on all platforms as it should.
The fix was to add following nohoist into the root package.json
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react-app-rewire-babel-loader
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page