Closed birkskyum closed 1 month ago
Isn't it switching between v1.x and 2.0 versions? The new lockfile is not backwards compatible - in Deno 2 it migrates automatically to version 4, but v1.x can't read it.
Tried again to verify:
The deno version is deno 2.0.0-rc.2 The lockfile is version 4 - In this repro it's made directly from a package.json, not migrated from a previous lockfile.
@dsherret please take a look
Sidenote: I also never found the right syntax to make the deno run -A npm:create-tauri-app@latest -- --rc
pick up on the --rc flag to make a Tauri 2 app. When I run the creation command with deno, I always end up with a Tauri 1 app, so that's why I used npm create -- --rc
or pnpm create --rc
(less dashed needed for pnpm apparently)
Version: deno 2.0.0-rc.2
I tried making a new Tauri 2 rc app:
npm create tauri-app@latest -- --rc
stepped through with defaults (deno isn't an option for package manager, so picked npm)
Saw something about esbuild not running postinstall for security reasons:
I know it's firing an install.js script, and I actually wanted that, so I fired it myself:
deno install --allow-scripts=npm:esbuild
Error:
Also comes with just
deno install