-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
params.path.substr is not a function #235
Comments
are you passing the animation as an object or as a path to a json file? |
I am using inside my React component render() {} method: and fyi data is a variable declared like so: |
OMG It all just clicked. Your js needs that path prop to be a string not an imported object. Okay let me see what I can do now. |
instead of using "path" use "animationData" and pass that object. It should work as well. |
Everything works! Thank you so much 💯 |
nice! |
I am building a React application with webpack and I am loading bodymovin.js through my index.html file and loading it using webpack 2 externals property (This all works fine however...)
When I give my code a run in the browser I get an error from the bodymovin.js file:
params.path.substr is not a function line 7465
Please advise
Thank you!
The text was updated successfully, but these errors were encountered: