Closed Zhanadil1509 closed 2 years ago
Can confirm this is happening to me as well
+1
+1
This was caused by upstream and appears to have been fixed in https://github.com/vercel/next.js/pull/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.
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