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
Describe the bug
i have warning on message: "The inferred type of 'getAllBooks' cannot be named without a reference to '.pnpm/@apollo+client@3.3.12_graphql@15.5.0/node_modules/@apollo/client/core'. This is likely not portable. A type annotation is necessary."
If I import the 'ApolloQueryResult' the typescript stop yelling. Can you take a look how to stop it?
To Reproduce
Steps to reproduce the behavior:
using pnpm install on windows, with nx workspace projecct.
find the solution, look like I need to import path to make sure typescript understand this library. I hope that can help other people have the same solution
Describe the bug
i have warning on message: "The inferred type of 'getAllBooks' cannot be named without a reference to '.pnpm/@apollo+client@3.3.12_graphql@15.5.0/node_modules/@apollo/client/core'. This is likely not portable. A type annotation is necessary."
If I import the 'ApolloQueryResult' the typescript stop yelling. Can you take a look how to stop it?
To Reproduce
Steps to reproduce the behavior:
using pnpm install on windows, with nx workspace projecct.
Expected behavior
not error
Environment:
Additional context
p/s: have the workaround, #1667 (comment)
import this to tsconfig.json solve the problem
The text was updated successfully, but these errors were encountered: