capacitor-community / background-geolocation

A Capacitor plugin that sends you geolocation updates, even while the app is in the background.
MIT License
180 stars 56 forks source link

Cannot find module "@capacitor/core/dist/esm/core-plugin-definitions" #22

Closed sverdlov closed 3 years ago

sverdlov commented 3 years ago

Describe the bug I use Capacitor v3 and got this error

Error: node_modules/@capacitor-community/background-geolocation/definitions.d.ts:1:26 - error TS2307: Cannot find module '@capacitor/core/dist/esm/core-plugin-definitions' or its corresponding type declarations. import {CallbackID} from "@capacitor/core/dist/esm/core-plugin-definitions";

I notice CallbackID is deprecated now. And you must import it from '@capacitor/core/types'

diachedelic commented 3 years ago

This should be fixed in v1.0.2, please let me know if it is not.