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
After updating a project to the rc.0 version of the CLI by following the steps in the wiki article, some types were now not found, at least using VSCode. Specifically trying to set a value on localstorage was showing an error that localstorage was not defined.
However, after looking at the changes to the tsconfig.json file, especially the one that was specified to be created at the root level, there is a difference in the 'lib' key. From the pre rc.0 tsconfig.json file:
"lib": [
"es2016",
"dom"
],
In the new tsconfig.json file:
"lib": [
"es2016"
],
The missing dom key causes the Typescript system to not find the localstorage (and other) types.
I do see the dom key in the tsconfig.app.json file, and a mention that in V4 pull request (#4924) the tsconfig files will be inherited. but this is still an Angular v2 project, so these aren't.
The text was updated successfully, but these errors were encountered:
OS?
Any
Versions.
After updating a project to the rc.0 version of the CLI by following the steps in the wiki article, some types were now not found, at least using VSCode. Specifically trying to set a value on
localstorage
was showing an error thatlocalstorage
was not defined.However, after looking at the changes to the
tsconfig.json
file, especially the one that was specified to be created at the root level, there is a difference in the 'lib' key. From the pre rc.0tsconfig.json
file:In the new
tsconfig.json
file:The missing
dom
key causes the Typescript system to not find thelocalstorage
(and other) types.I do see the
dom
key in thetsconfig.app.json
file, and a mention that in V4 pull request (#4924) the tsconfig files will be inherited. but this is still an Angular v2 project, so these aren't.The text was updated successfully, but these errors were encountered: