martpie / next-transpile-modules

Next.js plugin to transpile code from node_modules. Please see: https://github.com/martpie/next-transpile-modules/issues/291
MIT License
1.13k stars 85 forks source link

Nextjs 12.0.1 #244

Closed paales closed 2 years ago

paales commented 2 years ago

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

Additional context Add any other context about the problem here.

paales commented 2 years ago

Oh whooops, I didn't use the latest version

paales commented 2 years ago

@martpie Hehe, it will be fixed in 12.0.2 anyways: https://github.com/vercel/next.js/pull/30466

martpie commented 2 years ago

Oh whooops, I didn't use the latest version

Hehehe

V9 fixes add a check for that ;)