PouchDB認証ライブラリ(https://github.com/nolanlawson/pouchdb-authentication)をAngular2 Cli Typescriptプロジェクトにインポートする際に問題があります。Angular2 CliプロジェクトのPouchDB認証ライブラリ
私は私のタイピングにこれを追加しました:
declare module "pouchdb-authentication" {}
私system-config.ts
ファイルがmap
に含まれています
'pouchdb-authentication': 'vendor/pouchdb-authentication/dist/',
とpackages
に:
"pouchdb-authentication": {
main: "pouchdb.authentication.js",
defaultExtension: "js"
},
私はそれを使用しようとしていますように:
PouchDB.plugin(require('pouchdb-authentication'));
私も試してみました:
import * as PouchDBAuthentication from 'pouchdb-authentication';
現在、私は私のコンソールでこのエラーを取得しています:
zone.js:461: Unhandled Promise rejection: (SystemJS) TypeError: AMD module http://localhost:4200/vendor/pouchdb-authentication/dist/pouchdb.authentication.js did not define
任意のアイデアをいただければ幸いです!ありがとうございました!
ありがとうございます!それはそれを修正! – Josiah