Need some help to understand this issue. So I started my next.js project with the pre-configured sc

Need some help to understand this issue.
So I started my next.js project with the pre-configured script
npm create cloudflare@latest -- my-next-app --framework=next


Using radix-theme for the UI, but during build I get
> next build

  ▲ Next.js 14.2.5

Attempted import error: 'flushSync' is not exported from 'react-dom' (imported as 'ReactDOM').

Import trace for requested module:
./node_modules/@radix-ui/react-primitive/dist/index.mjs
./node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs
./node_modules/@radix-ui/themes/dist/esm/components/aspect-ratio.js
./node_modules/@radix-ui/themes/dist/esm/components/index.js
./node_modules/@radix-ui/themes/dist/esm/index.js
./app/layout.tsx
./node_modules/next/dist/build/webpack/loaders/next-app-loader.js?name=app%2F_not-found%2Fpage&page=%2F_not-found%2Fpage&pagePath=private-next-app-dir%2Fnot-found.tsx&appDir=C%3A%5CUsers%5CSHREYAS%5CDesktop%5Cktc-website%5Capp&appPaths=%2Fnot-found&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&basePath=&assetPrefix=&nextConfigOutput=&preferredRegion=&middlewareConfig=e30%3D!./app/not-found.tsx?__next_edge_ssr_entry__


> Build failed because of webpack errors

Any help to resolve this issue will be highly appreciated
Was this page helpful?