Comments (6)
May I ask where did you find my plugin (the link you mentioned)?
I think I know what is the issue here, you set it as a preset
but it's a plugin
so your .babelrc
should look like this:
{
"presets": ["react-native"],
"plugins": ["functional-hmr"]
}
If this does not help, feel free to share your project with me.
from babel-plugin-functional-hmr.
@RobIsHere thank for raising this issue!
It is interesting because I developed this plugin to improve storybook based development.
Did you add it with:
npm install --save-dev babel-plugin-functional-hmr
Could you verify package.json
contains the line
"babel-plugin-functional-hmr": "^1.0.20",
in the devDependencies
section?
You could also try to reset everything:
rm -rf node_modules/
yarn install
watchman watch-del-all
rm -rf $TMPDIR/react-*
./node_modules/react-native/packager/packager.sh --reset-cache
from babel-plugin-functional-hmr.
And that's where I found the link to you! Great idea!
I already tried a lot of things, also clearing caches.
The error says that it's looking at
"functional-hmr" relative to directory "MyApp/storybook"
While I would have expected that it looks in the base dir of my App? Like this?
"functional-hmr" relative to directory "MyApp"
from babel-plugin-functional-hmr.
@RobIsHere Any updates?
from babel-plugin-functional-hmr.
Thanks for the hint! Probably I had too much coffee yesterday. I've put it into plugins and the error message doesn't show up anymore.
I can't find the link anymore. I'm almost sure it was a comment by you at the end of some issue.
from babel-plugin-functional-hmr.
Thanks for getting back, good luck!
from babel-plugin-functional-hmr.
Related Issues (14)
- Bundling app does not work HOT 3
- Error in React Native 0.53 HOT 8
- Support for higher-order-components such as recompose HOT 5
- Issue with HMR with fragment syntax HOT 2
- Not working on react-native 0.57.7 HOT 1
- Any idea why unit tests are failing after enabling HMR?
- Won't work with hooks HOT 1
- Deprecating the package HOT 2
- support for non-jsx react components HOT 1
- Property property of MemberExpression expected node to be of a type [\"Identifier\"] but instead got null HOT 7
- setup help HOT 7
- Component is not rendered correctly if its stored in variable named 'Item' HOT 1
- [RN 0.52.0] Unknown named module: 'react' HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel-plugin-functional-hmr.