next package can't be found when using --turbo and deno 2 rc in a monorepo #70600
Labels
bug
Issue was opened via the bug report template.
Module Resolution
Module resolution (CJS / ESM, module resolving)
Turbopack
Related to Turbopack with Next.js.
Link to the code that reproduces this issue
https://github.com/hamlim/deno-monorepo
To Reproduce
deno upgrade rc
(using at least2.0.0-rc.7
)deno install
to install dependenciesdeno task dev --filter=docs
(runs the docs Next app in development mode)localhost:3000
Current vs. Expected behavior
Following the above steps - I'd expect the app to boot correctly, however it instead shows the following error in the terminal:
docs:dev: $ next dev --turbo docs:dev: ▲ Next.js 15.0.0-canary.140 (turbo) docs:dev: - Local: http://localhost:3000 docs:dev: docs:dev: ✓ Starting... docs:dev: [Error: Next.js package not found docs:dev: docs:dev: Debug info: docs:dev: - Execution of get_entrypoints_with_issues failed docs:dev: - Execution of Project::entrypoints failed docs:dev: - Execution of PagesProject::to_endpoint failed docs:dev: - Execution of PagesStructureItem::new failed docs:dev: - Execution of FileSystemPath::join failed docs:dev: - Execution of get_next_package failed docs:dev: - Next.js package not found] { docs:dev: code: 'GenericFailure' docs:dev: }
Note:
Removing
--turbo
on the dev task withinapps/docs/package.json
makes it work as expected.My assumption is that turbopack (maybe) is unable to resolve the symlinked
next
package from the rootnode_modules
(next is installed somewhere else withdeno
and then symlinked I think)Provide environment information
Which area(s) are affected? (Select all that apply)
Module Resolution, Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
Will attempt to replicate with the latest canary!
The text was updated successfully, but these errors were encountered: