next.js update to 12v - building crashed
Zhanadil1509 opened this issue · comments
Error: Cannot find module 'react-dom/server.browser'
Require stack:
-
/home/projects/nextjs-preact-webpack5-t2s3fm/node_modules/next/dist/bin/next
at Function.Module._resolveFilename (https://nextjs-preact-webpack5-t2s3fm.w.staticblitz.com/blitz.1becece65fb9e6d89d27bbe87eedd4d64b37a3a4.js:6:217231)https://stackblitz.com/edit/nextjs-preact-webpack5-t2s3fm?file=package.json
Can confirm this is happening to me as well
+1
+1
This was caused by upstream and appears to have been fixed in vercel/next.js#36749
so what do we do now?
use an earlier version? or run canary until the next full version is released
This is fixed in the latest (17.1.1) @preact/compat for Next 12.1.6.