Closed snowyu closed 6 years ago
@snowyu Hi. Thanks for the PR.
Do you have the allowSyntheticDefaultImports
compiler option set as specified in the PouchDB documentation ? [1]
In your tsconfig.json
file, this should read:
{
"compilerOptions": {
"allowSyntheticDefaultImports": true
}
}
[1] https://pouchdb.com/guides/setup-pouchdb.html#typescript
aha, Yes.
When imported it does not compile and gives me this error.
TS1192: Module '"/node_modules/pouchdb-authentication"' has no default export.
if you have
export = module
witch is our case and this breaks es6 style syntax See Microsoft/TypeScript#2242.