Add a new component with the Angular CLI ng g c my-component. The CLI automatically adds the component to the declarations array. But VSCode / TSLint doesn't pick up on it and throw an error.
Component 'MyComponent' is not included in a module... Consider adding it to a NgModule declaration
Saving all files doesn't remove the error, not does making a modification to the my-component.ts. Only restarting the VSCode removes the error. Basically generate a new component and restart the editor.
Extension version: 1.2.2
VS Code version: Code 1.38.1 (b37e54c98e1a74ba89e03073e5a3761284e3ffb0, 2019-09-11T13:31:32.854Z)
OS version: Darwin x64 18.7.0
Issue Type: Bug
Add a new component with the Angular CLI
ng g c my-component
. The CLI automatically adds the component to the declarations array. But VSCode / TSLint doesn't pick up on it and throw an error.Component 'MyComponent' is not included in a module... Consider adding it to a NgModule declaration
Saving all files doesn't remove the error, not does making a modification to the
my-component.ts
. Only restarting the VSCode removes the error. Basically generate a new component and restart the editor.Extension version: 1.2.2 VS Code version: Code 1.38.1 (b37e54c98e1a74ba89e03073e5a3761284e3ffb0, 2019-09-11T13:31:32.854Z) OS version: Darwin x64 18.7.0