Skip to content

Error TS6133 when building capacitor-mapbox #3

@idosius

Description

@idosius

The following TypeScript error appears when building capacitor-mapbox:

> capacitor-mapbox@0.0.1 build
> npm run clean && tsc


> capacitor-mapbox@0.0.1 clean
> rimraf ./dist

src/web.ts:17:17 - error TS6133: 'location' is declared but its value is never read.

17   async openMap(location: { lat: number, long: number}): Promise<void> {
                   ~~~~~~~~


Found 1 error.

npm ERR! code 2
npm ERR! path /Users/idosius/IdeaProjects/demo-capacitor-mapbox/capacitor-mapbox
npm ERR! command failed
npm ERR! command sh -c npm run clean && tsc

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/idosius/.npm/_logs/2021-03-16T09_33_47_472Z-debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions