-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ERROR in node_modules/rxjs/internal/types.d.ts #4511
Comments
What's typescript version / and is there reproducible repo? |
"typescript": "~2.7.0" |
Per this (#4405 (review)) change, it requires 2.8 version of typescript compiler. |
@kwonoj should i change it 2.7.0 to 2.8.0? angular version is 6.0.0 |
@monukanyal2017 we are trying to figure out which part is actually affects this, I or @cartant will fill bit more detail here. |
We've investigated the issue and the problem is that some versions of projects generated using Angular CLI have an RxJS dependency of RxJS version 6.4 uses a conditional type to facilitate some improvements to its types and conditional types were introduced in TypeScript 2.8. We are currently looking into the best way of addressing the problem. |
Same issue |
@cartant , Please let me know , should i install lower version of Rxjs? |
To workaround the issue, you can pin RxJS to 6.3 by changing the dependency version in your |
I am also facing the same issue . updated rxjs to 6.3.3, still getting the same issue. |
I've created a new issue to track this problem here #4512. |
@sachin-dbox, if you can create a minimum reproduction of that, please file a new issue and link in there. Happy to help if we can. |
Updating type script worked for me npm install -g typescript@latest |
Locking this. Refer to #4512 |
Bug Report
Current Behavior
I am getting following errror after using npm start or ng build --prod
ERROR in node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected.
node_modules/rxjs/internal/types.d.ts(81,74): error TS1005: ';' expected.
node_modules/rxjs/internal/types.d.ts(81,77): error TS1109: Expression expected.
Expected behavior
npm start or ng build command should run without any error.
Environment
The text was updated successfully, but these errors were encountered: