Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find 'pouchdb' #2

Open
NexusInk opened this issue Jun 23, 2016 · 8 comments
Open

Cannot find 'pouchdb' #2

NexusInk opened this issue Jun 23, 2016 · 8 comments

Comments

@NexusInk
Copy link

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)]

@hsbalar
Copy link
Owner

hsbalar commented Jun 23, 2016

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.

@Xotabu4
Copy link

Xotabu4 commented Oct 23, 2016

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 typescript@1.8.10 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'.



@hsbalar
Copy link
Owner

hsbalar commented Oct 24, 2016

@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

@hsbalar
Copy link
Owner

hsbalar commented Dec 26, 2016

You can just remove error by installing following dependency.

typings install dt~pouchdb --save --global

@hsbalar hsbalar closed this as completed Dec 26, 2016
@luizcarlospedrosogomes
Copy link

I have the same problem. Windows 10x64 - node 6.9.5

@hsbalar
Copy link
Owner

hsbalar commented Apr 12, 2017

Add custom-typings.d.ts file to root directory & add the following content to it.

declare module 'PouchDB' {
  namespace PouchDB {}
  export = PouchDB;
}
declare module '*';

@nocon4600
Copy link

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

@hsbalar hsbalar reopened this Jul 17, 2017
@PoojaGupta12
Copy link

PoojaGupta12 commented Jul 27, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants