elado / next-with-less

Next.js + Less CSS Support
MIT License
143 stars 24 forks source link

Doesn't work after upgrade to Next.js 12.0 #11

Closed chemicalkosek closed 2 years ago

chemicalkosek commented 2 years ago

Hey. After upgrading to Next.js 12.0 I am getting the following error:

TypeError: Cannot read property 'oneOf' of undefined
    at Object.webpack (/home/maciek/Dokumenty/websites/bookingapp/frontend/node_modules/next-with-less/dist/index.js:60:15)
    at Object.getBaseWebpackConfig [as default] (/home/maciek/Dokumenty/websites/bookingapp/frontend/node_modules/next/dist/build/webpack-config.js:1251:32)
    at async Promise.all (index 0)
    at async Span.traceAsyncFn (/home/maciek/Dokumenty/websites/bookingapp/frontend/node_modules/next/dist/trace/trace.js:74:20)
    at async Span.traceAsyncFn (/home/maciek/Dokumenty/websites/bookingapp/frontend/node_modules/next/dist/trace/trace.js:74:20)
    at async HotReloader.start (/home/maciek/Dokumenty/websites/bookingapp/frontend/node_modules/next/dist/server/dev/hot-reloader.js:307:25)
    at async DevServer.prepare (/home/maciek/Dokumenty/websites/bookingapp/frontend/node_modules/next/dist/server/dev/next-dev-server.js:278:9)
    at async /home/maciek/Dokumenty/websites/bookingapp/frontend/node_modules/next/dist/cli/next-dev.js:126:9
aNNdii commented 2 years ago

@adamyonk created a pull request to address this issue. #12

elado commented 2 years ago

Released v2.0.2

pailodze commented 2 years ago

still an issue with v2.0.2

TypeError: Cannot read property 'oneOf' of undefined at Object.webpack (/Users/*packages/website/node_modules/next-with-less/dist/index.js:66:15) at Object.getBaseWebpackConfig [as default] (/Users/*packages/website/node_modules/next/dist/build/webpack-config.js:1388:32) at async Promise.all (index 0) at async Span.traceAsyncFn (/Users/*packages/website/node_modules/next/dist/trace/trace.js:74:20) at async Span.traceAsyncFn (/Users/*packages/website/node_modules/next/dist/trace/trace.js:74:20) at async HotReloader.start (/Users/*packages/website/node_modules/next/dist/server/dev/hot-reloader.js:329:25) at async DevServer.prepare (/Users/*packages/website/node_modules/next/dist/server/dev/next-dev-server.js:296:9) at async /Users/*packages/website/node_modules/next/dist/cli/next-dev.js:130:9

pailodze commented 2 years ago

I think this PR #12 is addressing different issue