You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We noticed (in this issue: honojs/middleware#803) that when a dependency is listed several times with different versions in the deno.lock file, different versions are somehow used in different part of the code (see the error message of this comment: honojs/middleware#803 (comment)). Even if an only explicit version is used in the code.
If we remove the deno.lock file, the type of the json variable is well inferred. If we have a deno.lock file with different versions, the type will be wrongly inferred to never because different versions will be used (see in this comment hono is used in both versions 4.6.8 and 4.6.10).
I have noticed that if we only have one dependency in the deno.lock file, it works well:
The text was updated successfully, but these errors were encountered:
Amatewasu
changed the title
deno.lock impacts which version is used, despite not listed in deno.json
deno.lock impacts which version is used, despite explicit version import
Nov 14, 2024
We noticed (in this issue: honojs/middleware#803) that when a dependency is listed several times with different versions in the
deno.lock
file, different versions are somehow used in different part of the code (see the error message of this comment: honojs/middleware#803 (comment)). Even if an only explicit version is used in the code.Reproduction example:
If we remove the
deno.lock
file, the type of thejson
variable is well inferred. If we have adeno.lock
file with different versions, the type will be wrongly inferred tonever
because different versions will be used (see in this comment hono is used in both versions4.6.8
and4.6.10
).I have noticed that if we only have one dependency in the
deno.lock
file, it works well:but if we have several times the dependency, it does not work:
The text was updated successfully, but these errors were encountered: