You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My nextjs typescript starter app is failing to build while trying with nextjs-mf
Its shows react required and similar type of errors.My next.config.js configuration is
`$ NEXT_PRIVATE_LOCAL_WEBPACK=true next build
▲ Next.js 14.1.0
Creating an optimized production build ...
✓ Compiled successfully
✓ Linting and checking validity of types
Collecting page data ...Error: Can not get 'react-dom'
at /home/comp/projects/leapcore-mf/layout/.next/server/webpack-runtime.js:53:71865
at s.m.<computed> (/home/comp/projects/leapcore-mf/layout/.next/server/webpack-runtime.js:53:48086)
at __webpack_require__ (/home/comp/projects/leapcore-mf/layout/.next/server/webpack-runtime.js:53:53958)
at 5580 (/home/comp/projects/leapcore-mf/layout/.next/server/app/page.js:58:19682)
at __webpack_require__ (/home/comp/projects/leapcore-mf/layout/.next/server/webpack-runtime.js:53:53958)
at 7576 (/home/comp/projects/leapcore-mf/layout/.next/server/app/page.js:58:18654)
at __webpack_require__ (/home/comp/projects/leapcore-mf/layout/.next/server/webpack-runtime.js:53:53958)
at 3660 (/home/comp/projects/leapcore-mf/layout/.next/server/app/page.js:1:1268)
at __webpack_require__ (/home/comp/projects/leapcore-mf/layout/.next/server/webpack-runtime.js:53:53958)
at e (/home/comp/projects/leapcore-mf/layout/.next/server/app/page.js:58:62632)
> Build error occurred
Error: Failed to collect page data for /
at /home/ashinsinghmahat/projects/leapcore-mf/layout/node_modules/next/dist/build/utils.js:1258:15 {
type: 'Error'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.`
I have used latest create next js app command with default options.And my build command is "build": "NEXT_PRIVATE_LOCAL_WEBPACK=true next build",
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My nextjs typescript starter app is failing to build while trying with nextjs-mf
Its shows react required and similar type of errors.My next.config.js configuration is
And the error I ma getting is
I have used latest create next js app command with default options.And my build command is
"build": "NEXT_PRIVATE_LOCAL_WEBPACK=true next build",
Beta Was this translation helpful? Give feedback.
All reactions