PouchDB 인증 라이브러리 (https://github.com/nolanlawson/pouchdb-authentication)를 Angular2 Cli Typescript 프로젝트로 가져 오는 데 문제가 있습니다.Angular2 Cli 프로젝트의 PouchDB 인증 라이브러리
내 typings이 추가되었습니다 :
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