Git Product home page Git Product logo

Comments (6)

veltman avatar veltman commented on July 19, 2024

Hmm, hard to say but at a glance it seems likely that this is an issue with React Native or with your Babel/bundling setup. Are you not excluding node_modules from being parsed with Babel?

If you can share a branch or more details of your setup I can take a closer look.

from flubber.

ethantran avatar ethantran commented on July 19, 2024

Sure I am using expo. I will try with create-react-native-app next. https://github.com/ethantran/react-native-examples

from flubber.

ethantran avatar ethantran commented on July 19, 2024

crna does not work either by default. I fixed it on crna by npm install babel-plugin-add-module-exports --save-dev and adding "add-module-exports", to .babelrc. These steps do not work on an expo project however. I get another error "Couldn't find preset "env" relative to directory"

I guess I will transfer my code to crna, but is modifying by babelrc to use add module exports really the best way to fix this? I would prefer a way to use flubber without changing the default babel configs for expo or crna

from flubber.

veltman avatar veltman commented on July 19, 2024

Yeah, I agree that's not ideal but I think this is a question for the Babel folks. Seems like a misconfiguration somewhere in the process, since I would think that by default you wouldn't want to activate the babel configs of node_modules packages when bundling them.

from flubber.

veltman avatar veltman commented on July 19, 2024

Closing this, if you hear otherwise from the Babel folks feel free to reopen.

from flubber.

ethantran avatar ethantran commented on July 19, 2024

Forgot about this. I just ignored the flubber folder in my babel config instead installing it in my previous post.

"ignore": [ "node_modules/flubber" ]

from flubber.

Related Issues (20)

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.