[x] I HAVE READ THE FAQ AND MY PROBLEM WAS NOT DESCRIBED THERE
[x] I WILL GIVE 10$ TO BAGUETTE IF MY SOLUTION WAS ACTUALLY IN THE README/FAQ
Are you trying to transpile a local package or an npm package?
Unclear. Could be both.
Describe the bug
When I run next build it fails.
> Build error occurred
TypeError: Cannot read properties of undefined (reading 'and')
at Object.webpack (/Users/davidroegiers/Jurata/jurata-web/web/node_modules/next-transpile-modules/src/next-transpile-modules.js:201:60)
at getBaseWebpackConfig (/Users/davidroegiers/.nvm/versions/node/v18.9.0/lib/node_modules/next/dist/build/webpack-config.js:2163:32)
at async Promise.all (index 0)
at async Span.traceAsyncFn (/Users/davidroegiers/.nvm/versions/node/v18.9.0/lib/node_modules/next/dist/trace/trace.js:103:20)
at async webpackBuildImpl (/Users/davidroegiers/.nvm/versions/node/v18.9.0/lib/node_modules/next/dist/build/webpack-build/impl.js:133:21)
at async webpackBuild (/Users/davidroegiers/.nvm/versions/node/v18.9.0/lib/node_modules/next/dist/build/webpack-build/index.js:137:16)
at async /Users/davidroegiers/.nvm/versions/node/v18.9.0/lib/node_modules/next/dist/build/index.js:595:123
at async Span.traceAsyncFn (/Users/davidroegiers/.nvm/versions/node/v18.9.0/lib/node_modules/next/dist/trace/trace.js:103:20)
at async build (/Users/davidroegiers/.nvm/versions/node/v18.9.0/lib/node_modules/next/dist/build/index.js:148:29)
To Reproduce
run next build for my Jurata project on my local machine
Expected behavior
I expect it to run without failing.
Are you trying to transpile a local package or an npm package? Unclear. Could be both.
Describe the bug When I run
next build
it fails.To Reproduce run
next build
for my Jurata project on my local machineExpected behavior I expect it to run without failing.
Setup
next-transpile-modules
version: 9.0.0npm
version: 9.8.1