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
The inferred type of 'actions' cannot be named without a reference to '../../.yarn/__virtual__/@reduxjs-toolkit-virtual-5ff160901c/4/.yarn/berry/cache/@reduxjs-toolkit-npm-2.2.3-3fa8bcc11c-10c0.zip/node_modules/@reduxjs/toolkit/dist/entities/models'. This is likely not portable. A type annotation is necessary.
#58474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
The following error message appears, but the type reference can still be indexed
The inferred type of 'actions' cannot be named without a reference to '../../.yarn/__virtual__/@reduxjs-toolkit-virtual-5ff160901c/4/.yarn/berry/cache/@reduxjs-toolkit-npm-2.2.3-3fa8bcc11c-10c0.zip/node_modules/@reduxjs/toolkit/dist/entities/models'. This is likely not portable. A type annotation is necessary.
🙂 Expected behavior
The type declaration of symlink can be obtained correctly
I'd suggest using nightly since #58176 likely fixed this, but you're also using PnP which requires patching TypeScript so is very unlikely to work on nightly.
I'd suggest using nightly since #58176 likely fixed this, but you're also using PnP which requires patching TypeScript so is very unlikely to work on nightly.
Thanks Reply. I just tried it. In [email protected], changing moduleResolution to node16 also had the same problem. Looks like it may be related to nodenext exports.
🔎 Search Terms
yarn pnp or pnpm symlink, A type annotation is necessary.
🕗 Version & Regression Information
typescript@5, using yarn berry pnp mode, cannot reference the actions of @reduxjs/toolkit, but there is no problem using [email protected].
⏯ Playground Link
No response
💻 Code
🙁 Actual behavior
The following error message appears, but the type reference can still be indexed
🙂 Expected behavior
The type declaration of symlink can be obtained correctly
Additional information about the issue
// .yarnrc.yml
// tsconfig.json
The text was updated successfully, but these errors were encountered: