preserver
preserver copied to clipboard
Cannot find 'pouchdb'
Have built from git clone. Have the following errors:
ERROR in ./client/app/services/notes_table.service.ts
(3,26): error TS2307: Cannot find module 'pouchdb'.
ERROR in ./client/app/services/bin_table.service.ts
(3,26): error TS2307: Cannot find module 'pouchdb'.
ERROR in ./client/app/services/archive_table.service.ts
(3,26): error TS2307: Cannot find module 'pouchdb'.
See this issue to resolve: [(https://github.com/Microsoft/TypeScript/issues/2192)]
Not a problem at all.. it is just typings error. Pouchdb's typings is not installed that's why. But project is built you can proceed.
Same here. Terminal waits forever to complete npm run build This is last that was shown in console. Waiting for 20 mins already - nothing changed, process still not finished.
ts-loader: Using [email protected] and C:\Users\xotab\OneDrive\Documents\GitHub\Preserver\tsconfig.json
Hash: 284409c94947049de61c
Version: webpack 1.13.2
Time: 11347ms
Asset Size Chunks Chunk Names
25a32416abee198dd821b0b17a198a8f.eot 76.5 kB [emitted]
e6cf7c6ec7c2d6f670ae9d762604cb0b.woff2 71.9 kB [emitted]
c8ddf1e5e5bf3682bc7bebf30f394148.woff 90.4 kB [emitted]
1dc35d25e61d819a9c357074014867ab.ttf 153 kB [emitted]
d7c639084f684d66a1bc66855d193ed8.svg 392 kB [emitted]
bundle.js 1.29 MB 0 [emitted] app
vendor.bundle.js 2.44 MB 1 [emitted] vendor
bundle.js.map 1.54 MB 0 [emitted] app
vendor.bundle.js.map 2.9 MB 1 [emitted] vendor
+ 630 hidden modules
ERROR in C:\Users\xotab\OneDrive\Documents\GitHub\Preserver\typings\globals\pouchdb\index.d.ts
(4,19): error TS2503: Cannot find namespace 'PouchDB'.
@Xotabu4 Its webpack build process watching your changes when you modify your source it will re-build your app.
Its optional & defined in package.json
"build": "npm run start:webpack", "start:webpack": "webpack -w",
-w
is for watch If you remove -w
then after successful build it will give you terminal back
You can just remove error by installing following dependency.
typings install dt~pouchdb --save --global
I have the same problem. Windows 10x64 - node 6.9.5
Add custom-typings.d.ts
file to root directory & add the following content to it.
declare module 'PouchDB' {
namespace PouchDB {}
export = PouchDB;
}
declare module '*';
Having the same problem : Windows 10 pro x64 , Node 6.11.0. Also have tried custom-typings.d.ts approach you have mentioned. Still facing the same issue
I tried to run the Demo from this site: http://angularexpo.com/preserver/ It looks like it is not loading logo image file and 404 error from the browser console: Cannot GET /public/images/logo.png
Have built from git clone and got the same error.