Skip to content
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

doesn't work with next | paths.join is not a function #11

Open
pixelass opened this issue Dec 10, 2019 · 1 comment
Open

doesn't work with next | paths.join is not a function #11

pixelass opened this issue Dec 10, 2019 · 1 comment

Comments

@pixelass
Copy link

When using this with next.js I get the following error:

[ error ] ./pages/_app.tsx
[1] TypeError: paths.join is not a function
[1]     at Array.forEach (<anonymous>)
[1]     at Array.map (<anonymous>)
[1] [ wait ]  compiling ...
[1] > Client ready on http://localhost:3000
[1] [ error ] ./node_modules/next/dist/client/next-dev.js
[1] TypeError: paths.join is not a function
[1]     at Array.forEach (<anonymous>)
[1]     at Array.map (<anonymous>)
[1] [ wait ]  compiling ...
[1] [ error ] ./node_modules/next/dist/client/next-dev.js
[1] TypeError: paths.join is not a function
[1]     at Array.forEach (<anonymous>)
[1]     at Array.map (<anonymous>)
[1] [ wait ]  compiling ...
[1] [ error ] ./node_modules/next/dist/client/next-dev.js
[1] TypeError: paths.join is not a function
[1]     at Array.forEach (<anonymous>)
[1]     at Array.map (<anonymous>)

@juanfrnz
Copy link

juanfrnz commented Jan 27, 2020

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"
    ]
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants