deno
deno copied to clipboard
"deno install" breaks fresh Next.js project on Deno 2
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