Comments (6)
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.
Sure I am using expo. I will try with create-react-native-app next. https://github.com/ethantran/react-native-examples
from flubber.
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.
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.
Closing this, if you hear otherwise from the Babel folks feel free to reopen.
from flubber.
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)
- Typescript typings
- Jest test fails: r.getTotalLength is not a function HOT 2
- Can we use flubber to animate from svg shape to path HOT 1
- Interpolate fills the shape HOT 2
- Using in Gatsby with IE11 HOT 1
- Animation typical doesn't work over time
- Error: 'svgPathProperties' is not exported HOT 1
- Broken in latest Chromium HOT 4
- output precision for path strings need not use 16 digits
- Reanimatedv2 HOT 1
- Porting to other languages HOT 2
- async API / non-blocking interpolation (using webworkers)
- Factor out `Number.isFinite` HOT 1
- Expose an API that outputs the compatible to/from path strings HOT 1
- Multiple instances of flubber.js HOT 1
- Improving performance: aka To-Do for Performance HOT 1
- Flubber performs differently when loaded via webpack/babel. HOT 4
- Add flubber.align()?
- flubber with greensock HOT 3
- Support for open/unclosed polygons (polylines) HOT 3
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 flubber.