deno icon indicating copy to clipboard operation
deno copied to clipboard

"deno install" breaks fresh Next.js project on Deno 2

Open Janhouse opened this issue 1 year ago • 3 comments

Deno 2 is not usable with Next.js because next stops building as soon as deno install is run for the first time in fresh project even without adding any new npm modules.

Version: Deno 2.0.0

deno run -A npm:create-next-app@latest .
deno run -A build
# This works and Next.js builds

# Immediately after run

deno install
deno run -A build
# This fails with `..Error: Cannot find module './chunks/379.js'`
# Deleting `node_modules` and `deno.lock` does not help

Janhouse avatar Oct 11 '24 20:10 Janhouse