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
That works. I get an initial error when using Go To Definition, but I think it has to do with the zipfs (nothing to do with that update, either).
Unable to open 'object.d.ts': Unexpected model for TextResourceEditorInput: zip:/home/jeremy/dev/test/yarn3-erroneous-types/.yarn/cache/%40types-lodash-npm-4.14.172-e52063c461-5fc51ea40d.zip/node_modules/%40types/lodash/common/object.d.ts.
It works on the second try. I can open a new ticket for that; just don't know if it should be on this repo, or somewhere else? I can reproduce it pretty reliably.
Self-service
Describe the bug
There seems to be some issue with resolving typescript types for a package when importing modules from subdirectories/exports.
A couple screenshots that might help explain:
Go To Definition
If I import
get
first, then the types forset
will point toget
.Perhaps this has to do with
arcanis.vscode-zipfs
, because I remember that you didn't used to be able to useGo To Definition
when using yarn 2.The problem does not exist when I use Typescript with a more common package manager.
To reproduce
Reproduction repository: https://github.com/Js-Brecht/yarn3-tsc-type-resolution-issue
Should be able to run
yarn
from the repository, and then try runningyarn tsc
... it throws an error where it shouldn't.Environment
The text was updated successfully, but these errors were encountered: