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

Nextjs 12.0.1 #244

Closed
paales opened this issue Oct 28, 2021 · 3 comments
Closed

Nextjs 12.0.1 #244

paales opened this issue Oct 28, 2021 · 3 comments

Comments

@paales
Copy link

paales commented Oct 28, 2021

Are you trying to transpile a local package or an npm package?
local

Describe the bug

[next] TypeError: config?.externals?.map is not a function
[next]     at Object.webpack (/Users/paulhachmang/Sites/reachdigital-next/node_modules/next-transpile-modules/src/next-transpile-modules.js:233:49)
[next]     at Object.webpack (/Users/paulhachmang/Sites/reachdigital-next/packagesDev/next-config/dist/index.js:24:74)
[next]     at Object.webpack (/Users/paulhachmang/Sites/reachdigital-next/node_modules/next-pwa/index.js:57:27)
[next]     at Object.getBaseWebpackConfig [as default] (/Users/paulhachmang/Sites/reachdigital-next/node_modules/next/dist/build/webpack-config.js:1327:32)
[next]     at async Promise.all (index 0)
[next]     at async Span.traceAsyncFn (/Users/paulhachmang/Sites/reachdigital-next/node_modules/next/dist/trace/trace.js:74:20)
[next]     at async Span.traceAsyncFn (/Users/paulhachmang/Sites/reachdigital-next/node_modules/next/dist/trace/trace.js:74:20)
[next]     at async HotReloader.start (/Users/paulhachmang/Sites/reachdigital-next/node_modules/next/dist/server/dev/hot-reloader.js:321:25)
[next]     at async DevServer.prepare (/Users/paulhachmang/Sites/reachdigital-next/node_modules/next/dist/server/dev/next-dev-server.js:289:9)
[next]     at async /Users/paulhachmang/Sites/reachdigital-next/node_modules/next/dist/cli/next-dev.js:126:9

To Reproduce
I just upgraded to 12.0.1 from 12.0.0 and now this error occured.

Expected behavior
A clear and concise description of what you expected to happen.

Setup

  • Next.js version: 12.0.1
  • next-transpile-modules version: latest
  • Node.js version: 14
  • npm/yarn version: yarn
  • Operating System: osx
  • Webpack 4 or 5: 5

Additional context
Add any other context about the problem here.

@paales
Copy link
Author

paales commented Oct 28, 2021

Oh whooops, I didn't use the latest version

@paales paales closed this as completed Oct 28, 2021
@paales
Copy link
Author

paales commented Oct 28, 2021

@martpie Hehe, it will be fixed in 12.0.2 anyways: vercel/next.js#30466

@martpie
Copy link
Owner

martpie commented Oct 28, 2021

Oh whooops, I didn't use the latest version

Hehehe

V9 fixes add a check for that ;)

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