apollo icon indicating copy to clipboard operation
apollo copied to clipboard

BUG: Getting a vue-tsc BigInt error when using useResult pick function

Open glundgrenm opened this issue 3 years ago • 0 comments

Describe the bug The pick function works when running locally, but on build, Vue3 runs vue-tsc and then i get the error: TS2318: Cannot find global type 'BigInt'.

To Reproduce Run on terminal yarn vue-tsc --noEmit with and without a pick function on any useResult. Ex.:

const {
  result: resultGroup,
} = useQuery(READ_GROUP, {
  id: props.id || "",
});

const group = useResult(resultGroup, [], (data) => data.resultGroup);

Expected behavior You should see: error TS2318: Cannot find global type 'BigInt'. when using a pick function.

Versions vue: 3.2.31 @apollo/client: 3.5.10

glundgrenm avatar Mar 29 '22 12:03 glundgrenm