Coder Social home page Coder Social logo

Comments (6)

bvic23 avatar bvic23 commented on May 29, 2024 4

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.

bvic23 avatar bvic23 commented on May 29, 2024

@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.

RobIsHere avatar RobIsHere commented on May 29, 2024

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.

bvic23 avatar bvic23 commented on May 29, 2024

@RobIsHere Any updates?

from babel-plugin-functional-hmr.

RobIsHere avatar RobIsHere commented on May 29, 2024

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.

bvic23 avatar bvic23 commented on May 29, 2024

Thanks for getting back, good luck!

from babel-plugin-functional-hmr.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.