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

registerPlugin not found #30

Closed sander-spruit closed 3 years ago

sander-spruit commented 3 years ago

After reading the docs, the plugin looked very promising, but cannot get it to work as of yet, likely due to unclear instructions. registerPlugin cannot be found (using capacitor V3).

Steps to reproduce the behavior:

  1. Start new project using capacitor V3 (Angular + Ionic)
  2. Run npm install @capacitor-community/background-geolocation, npx cap update
  3. Attempt build
diachedelic commented 3 years ago

Please include the error output.

sander-spruit commented 3 years ago

./node_modules/@capacitor/core/dist/esm/index.js Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): Error: ENOENT: no such file or directory, open '\node_modules\@capacitor\core\dist\esm\index.js'

"export 'registerPlugin' was not found in '@capacitor/core'

diachedelic commented 3 years ago

Your build system is misconfigured, and is resolving the "@capacitor/core" dependency to a non-existant file.