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
have error : ERROR in node_modules/@ngrx/store/src/store.d.ts(30,31): error TS2304: Cannot find name 'Extract'. #1488
Comments
What version of typescript are you on? (run |
I am having the same exact same error and my ng --version is the following: Angular CLI: 6.1.5 Package Version@angular-devkit/architect 0.7.5 |
Upgrade TypeScript (I think you should also upgrade Angular in order to get it fully working) and it should be fine. If not you can re-open this issue. |
Thank you @timdeschryver I have updated to the latest, but I am still receiving the same error: ERROR in node_modules/@ngrx/store/src/store.d.ts(30,31): error TS2304: Cannot find name 'Extract'. I would update Angular to the latest, but I have rule about not updating while in the middle of working on a project. If there are no other suggestions, then I will wait until the project is complete, followed by updating to the latest Angular Thanks in advance |
The |
@timdeschryver sorry, I am still a newbie at all of this. How do I found what the version is for my project. Also, Happy New Year to you and yours |
@kronus by running |
try to check the typescript version of your project deps by running npm ls typescript npm -i typescript@{{ highest typescript version on your project deps }} --save |
@MarkJAmes1217 - thank you for replying. I ran npm ls typescript and the following is the result: Followed by sudo npm i typescript@2.9.2 --save and I received the access warnings. I do not understand what I am missing. ERR! path /Applications/MAMP/htdocs/oshop/node_modules/@ng-bootstrap/schematics/node_modules/typescript/bin/tsc npm ERR! A complete log of this run can be found in: |
try to delete the node modules folder and run npm i |
@MarkJAmes1217 , thanks for your help. I had to run sudo npm i --unsafe-perm --verbose to avoid all the EACCES errors ng --verison: Angular CLI: 6.1.0 Package Version@angular-devkit/architect 0.7.5 I am still seeing the same error:
|
Angular 6 uses typescript from 2.7.2 until 2.8.0, ngrx 7 uses 2.8.0 and above, so there is a conflict here. I fixed the problem by downgrading ngrx to version 6. I could have updated angular to version 7 but that would be more time consuming. |
this seems to be a persistent issue with latest angular/ngrx |
@Vallerious suggestion of downgrading to rxjs 6 worked for me (thanks!) |
this is my dependencies
{
"name": "ngrx-test",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^6.0.2",
"@angular/common": "^6.0.2",
"@angular/compiler": "^6.0.2",
"@angular/core": "^6.0.2",
"@angular/forms": "^6.0.2",
"@angular/http": "^6.0.2",
"@angular/platform-browser": "^6.0.2",
"@angular/platform-browser-dynamic": "^6.0.2",
"@angular/router": "^6.0.2",
"@ngrx/store": "^7.0.0",
"core-js": "^2.5.4",
"rxjs": "^6.0.0",
"zone.js": "^0.8.26"
},
"devDependencies": {
"@angular/compiler-cli": "^6.0.2",
"@angular-devkit/build-angular": "~0.6.3",
"typescript": "*",
"@angular/cli": "~6.0.3",
"@angular/language-service": "^6.0.2",
"@types/jasmine": "~2.8.6",
"@types/jasminewd2": "~2.0.3",
"@types/node": "~8.9.4",
"codelyzer": "~4.2.1",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~1.7.1",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~1.4.2",
"karma-jasmine": "~1.1.1",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.3.0",
"ts-node": "~5.0.1",
"tslint": "~5.9.1"
}
}
The text was updated successfully, but these errors were encountered: