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

angular2-localstorage/index.js implicitly has an 'any' type #84

Open
rj93 opened this issue May 8, 2017 · 1 comment
Open

angular2-localstorage/index.js implicitly has an 'any' type #84

rj93 opened this issue May 8, 2017 · 1 comment

Comments

@rj93
Copy link

rj93 commented May 8, 2017

I am using Angular 4 (not sure if its compatiable?), and I'm trying to use local storage. I have angular2-localstorage installed at /node_modules/angular2-localstorage but I am unable to start the application. The full error I get is:

> [email protected] prestart C:\xampp\htdocs\reddit-search
> npm run build


> [email protected] build C:\xampp\htdocs\reddit-search
> tsc -p src/

src/app/app.module.ts(7,53): error TS7016: Could not find a declaration file for module 'angular2-localstorage'. 'C:/xampp/htdocs/reddit-search/node_modules/angular2-localstorage/index.js' implicitly has an 'any' type.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: `tsc -p src/`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script 'tsc -p src/'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-quickstart package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     tsc -p src/
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular-quickstart
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls angular-quickstart
npm ERR! There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Richard\AppData\Roaming\npm-cache\_logs\2017-05-08T09_58_24_195Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] prestart: `npm run build`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] prestart script 'npm run build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-quickstart package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular-quickstart
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls angular-quickstart
npm ERR! There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Richard\AppData\Roaming\npm-cache\_logs\2017-05-08T09_58_24_231Z-debug.log
@DanielKucal
Copy link

ngx-store is compatible with Angular v4 and AoT compiler. Give it a try :)

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

2 participants