You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.
I manually add import PouchDB from 'pouchdb'; as first line to node_modules/leaflet.tilelayer.pouchdbcached/L.TileLayer.PouchDBCached.js and above error solved, and things are working as expected.
So until you guys fix this properly, we can use above as workaround. thanks.
I use Angular with Ionic and I had to add: import PouchDB from 'pouchdb'; (window as any).PouchDB = PouchDB;
To the file with the map container, and: (window as any).global = window;
to polyfills.ts
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am trying to config this plugin in my Ionic project. I see following error:
My PouchDB configuration is based on this demo: nolanlawson/pouchdb-ionic-2-typescript-demo which is quite simple.
So I did import PouchDb in my page like this:
import PouchDB from 'pouchdb';
then I have leaflet and other plugin imports:
followed by this plugin import:
import 'leaflet.tilelayer.pouchdbcached';
and finally tile layer initialisation:
Does anyone here did use this plugin in a Typescript project? I will appreciate any hint for this in advance. thanks.
The text was updated successfully, but these errors were encountered: