Next.js Discord

Discord Forum

Issue migrating to turborepo

Unanswered
aabeborn posted this in #help-forum
Open in Discord
Avatar
Hi I'm moving a next@canary small codebase to turborepo. it uses bun as package manager.
From the switch i. have the following warning while starting the dev env:
<w> [webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo] Resolving 'react-dom/package.json' in /Users/aabeborn/dev/me/node_modules/next/dist/build for build dependencies doesn't lead to expected result '/Users/aabeborn/dev/me/node_modules/react-dom/package.json', but to '/Users/aabeborn/dev/me/node_modules/next/node_modules/react-dom/package.json' instead. Resolving dependencies are ignored for this path.
@aabeborn/ui:dev: <w>  at unknown 4 react-dom/package.json
@aabeborn/ui:dev: <w>  at file dependencies /Users/aabeborn/dev/me/node_modules/next/dist/build/webpack-config.js
@aabeborn/ui:dev: <w>  at file /Users/aabeborn/dev/me/node_modules/next/dist/build/webpack-config.js
@aabeborn/ui:dev: <w>  at file dependencies /Users/aabeborn/dev/me/node_modules/next/dist/build/handle-externals.js
@aabeborn/ui:dev: <w>  at file /Users/aabeborn/dev/me/node_modules/next/dist/build/handle-externals.js
@aabeborn/ui:dev: <w>  at file dependencies /Users/aabeborn/dev/me/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js
@aabeborn/ui:dev: <w>  at file /Users/aabeborn/dev/me/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js
@aabeborn/ui:dev: <w>  at resolve commonjs /Users/aabeborn/dev/me/node_modules/next/dist/build/webpack/loaders/next-swc-loader.js

has someone any idea on it? I have followed the "base example" from turborepo as reference even if not needed but still facing the issue

0 Replies