question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Recharts breaking our build

See original GitHub issue

We currently use recharts in our project and after the lastest update of react-smooth, our build is breaking with the following error:

index.js:1Uncaught SyntaxError: Unexpected token import
...
import Animate from './Animate';

in react-smooth/lib/index.js

could you please have a look and release a patch.

thanks.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:15
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
OlivierCocommented, Jan 16, 2017

@kunall17 you were almost there

npm install directly this package in your project

"react-smooth": "0.1.17"

The solution for now has been to add “react-smooth” package in my dependencies and use 0.1.17 version for now, once this bug will be fix I will update recharts and then remove “react-smooth” package from my direct dependencies.

hope this help

2reactions
mehdivkcommented, Jan 17, 2017

@xile611 to confirm 0.1.19 fixes the problem! Thanks for the fix. It’s much appreciated 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to prevent breaking axis long labels in React Recharts?
React Recharts is breaking values into separate lines ... How to prevent breaking labels and show it fully at the same line?
Read more >
Exploring Recharts: what can be rendered inside a Recharts ...
Can we create a new react component which returns a Recharts component and render it inside the top level chart container ? Sadly,...
Read more >
Build and Custom Style Recharts Data Charts
Recharts has standard charts and tooltips, but customizing them takes extra effort.
Read more >
How to Create and Deploy a Create React App with Recharts ...
Utilising the WikiQuotes API to scrape quotes; Dynamically changing pages and passing props; Deploying on Github Pages. You can definitely do ...
Read more >
Awesome React Charts Tips: Gradients, Overlays ... - LeanyLabs
Apply these advanced Recharts library tips to improve your chart`s design and ... Tweaking dx , dy , stdDeviation , flood-color , and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found