Open pixelass opened 4 years ago
Order matters when declaring babel plugins. Did you configure using .babelrc
? Try adding the babel-plugin-recharts
at the end of the plugins list. A working example would be:
{
"presets": ["next/babel"],
"plugins": [
[
"styled-components",
{ "ssr": true, "displayName": true, "preprocess": false },
"babel-plugin-recharts"
]
]
}
When using this with next.js I get the following error: