question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Type check oddity

See original GitHub issue

Its not high priority, and possibly not even an issue of your code, but I installed rc-3 and get an eslint error:

ERROR in c:/some/path/node_modules/@vueuse/core/dist/index.d.ts(351,17):
351:17 Cannot find name 'Coordinates'.
    349 | declare function useGeolocation(options?: GeolocationOptions): {
    350 |     isSupported: boolean | undefined;
  > 351 |     coords: Ref<Coordinates>;
        |                 ^
    352 |     locatedAt: Ref<number | null>;
    353 |     error: Ref<{
    354 |         readonly code: number;
Version: typescript 4.1.2

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
antfucommented, Nov 28, 2020

@DarkXanteR If you don’t want to bump your TS version, maybe you can set this in tsconfig.json

{
  "compilerOptions": {
    "skipLibCheck": true
  }
}
1reaction
shinnosuke-ooyamacommented, Nov 27, 2020

I had the same problem. Since TypeScript 4.1.2, Coordinates has been removed and replaced with GeolocationCoordinates.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I check if an integer is even or odd? - Stack Overflow
Use the modulo (%) operator to check if there's a remainder when dividing by 2: if (x % 2) { /* x is...
Read more >
Python Oddities Explained - Trey Hunner
If it looks like a duck and quacks like a duck, it's a duck; Don't type check: rely on specific behaviors instead; "Iterable"...
Read more >
Transaction Oddities (comparison, field splitting, click vs. type)
I'm getting odd returns for a transaction in which the final search operator works one way for exact matches (value=3.444), but not for...
Read more >
[Agda] Agda type inference oddity on functions
I mean "accepted by the Agda type-checker without unsolved metas", ... In this example, I was expecting the type inference algorithm to ...
Read more >
A collection of Java curiosities and oddities - Kevin Boone
All the methods for sorting arrays, regardless of type, in java.util. ... always test for equality of reference; that is a separate oddity, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found