You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VSCode intellisense not working with typescript 3.7.5 in Angular projects #37187
Using the latest vscode with Typescript 3.7.5, intellisense breaks for anything referencing node_modules. This is reflected on new projects created with @angular/cli as well. Tested on an Angular 7 project to see if the version difference between Angular 7 and Angular 9 made a difference.
Adam (@admosity) did you ever find a solution? This seems like an issue I have at work. We have a parent library/project which contains all the dependancies in its package json (angular, rxjs, etc). Our child apps have only the parent in their package.json now so we don't need to worry about updating every app's package.json, but now imports don't work.
I've tried adding to typeRoots but it doesn't seem to do anything... Using Angular 10 / TS 3.9.6 (although we had the issue in Angular 9 and whatever TS 3.8.x version it used too).
Activity
mjbvz commentedon Mar 3, 2020
Does it work as expected with Ts 3.8? I believe they fixed a few bugs related to newer angular versions in that release
admosity commentedon Mar 3, 2020
Same result with 3.8:
admosity commentedon Mar 3, 2020
I pushed up the setup that was generated by angular's cli tool:
https://github.com/admosity/angular-9-vscode-intellisense
Maybe it could just be me...
DanielRosenwasser commentedon Mar 4, 2020
Verified in 3.9.0-dev.20200303
DanielRosenwasser commentedon Mar 4, 2020
Ideally
typeRootsshouldn't need to be specified at all here. I'm not sure if Angular CLI itself does that at all. (Minko Gechev (@mgechev))mgechev commentedon Mar 4, 2020
FYI angular/angular-cli#17149.
andrewbranch commentedon Mar 4, 2020
Duplicate of #36042 (canonical), #30033, #30474, and #28773.
typescript-bot commentedon Mar 7, 2020
This issue has been marked as a 'Duplicate' and has seen no recent activity. It has been automatically closed for house-keeping purposes.
cjdreiss commentedon Aug 3, 2020
Adam (@admosity) did you ever find a solution? This seems like an issue I have at work. We have a parent library/project which contains all the dependancies in its package json (angular, rxjs, etc). Our child apps have only the parent in their package.json now so we don't need to worry about updating every app's package.json, but now imports don't work.
I've tried adding to
typeRootsbut it doesn't seem to do anything... Using Angular 10 / TS 3.9.6 (although we had the issue in Angular 9 and whatever TS 3.8.x version it used too).