LTS 2.1.12 Deno generates `deno.lock` with version 5.
👋 Please help me fixing situation with broken
deno.lock
file.
1. I have installed Deno via shell script from docs.
2. Then initiated a Deno project, then added Fresh, etc.
3. During Deno Deploy I found out that version: 5
in lock files causes the problem.
4. Changed it manually and it worked.
However, whenever lock files is updated version is getting updated too. So, I used deno upgrade lts
to downgrade Deno latest to LTS, but the result is still the same. Why? How can I fix that?2 Replies
OK guys! SOLVED. It was a problem with VS Code which I restarted and it now uses LTS version very well and autogenerated lock files has version 4. Silly, but annoying issue. hope it helps someone else too. So, the solution:
1. Downgrade to LTS
deno upgrade lts
;
2. Run deno clean
just in case in the root of project;
3. Restart VS Code:
— Close VS Code so it is not automatically updating the lock file;
— Remove deno.lock;
— Start VS Code — Generated lock file must be OK.Maybe worth creating an issue in the runtime repo