cyrilletuzi / angular-async-local-storage

Efficient client-side storage for Angular: simple API + performance + Observables + validation
MIT License
676 stars 68 forks source link

Build failure using latest release #50

Closed joeskeen closed 6 years ago

joeskeen commented 6 years ago

After installing the latest release (which fixed #47), I now get a build failure trying to build my project:

ERROR in node_modules/@ngx-pwa/local-storage/lib/lib.service.d.ts(2,31): error TS2307: Cannot find module './databases/local-database'.
node_modules/@ngx-pwa/local-storage/lib/lib.service.d.ts(3,28): error TS2307: Cannot find module './validation/json-schema'.
node_modules/@ngx-pwa/local-storage/lib/lib.service.d.ts(4,31): error TS2307: Cannot find module './validation/json-validator'.
node_modules/@ngx-pwa/local-storage/ngx-pwa-local-storage.d.ts(5,44): error TS2307: Cannot find module './lib/databases/local-database'.
node_modules/@ngx-pwa/local-storage/public_api.d.ts(1,28): error TS2307: Cannot find module './lib/validation/json-schema'.
node_modules/@ngx-pwa/local-storage/public_api.d.ts(2,31): error TS2307: Cannot find module './lib/databases/local-database'.
node_modules/@ngx-pwa/local-storage/public_api.d.ts(3,35): error TS2307: Cannot find module './lib/databases/indexeddb-database'.
node_modules/@ngx-pwa/local-storage/public_api.d.ts(4,38): error TS2307: Cannot find module './lib/databases/localstorage-database'.
node_modules/@ngx-pwa/local-storage/public_api.d.ts(5,35): error TS2307: Cannot find module './lib/databases/mock-local-database'.
node_modules/@ngx-pwa/local-storage/public_api.d.ts(6,31): error TS2307: Cannot find module './lib/validation/json-validator'.

I can avoid this error using skipLibCheck: true in my tsconfig, but this should definitely be fixed.

cyrilletuzi commented 6 years ago

@joeskeen Can you check it's not just an installation problem, by removing your node_modules and your package-lock.json and doing a new npm install?

The project structure has not been changed at all with the last patch.

cyrilletuzi commented 6 years ago

@joeskeen any news?

alignsoft commented 6 years ago

FWIW - I'm not seeing that error with skipLibCheck:false

cyrilletuzi commented 6 years ago

Closing as it's now 2 weeks without news, but feel free to comment if there is anything new.