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
Create an exportable interface in an other file : ITest with a property first
Implement the ITest interface in TestService
Inject the TestService into the AppComponent constructor
Import the interface created into the AppComponent
Create a new instance of the TestService and store the instance into a variable of type ITest (this is useless but into an other project I'm using interface to use some services)
Make a console.log of the property first from the variable of type ITest (that will work)
Save all changes and wait the compilation
Create a new property into the ITest interface (e.g: second)
In the AppComponent, make a console.log of the property second from the variable of type ITest
Save changes
Compilation error appears
The log given by the failure.
ERROR in F:/Projets/Web/simple_project/src/app/app.component.ts (60,19): Property 'second' does not exist on type 'ITest'.
Mention any other details that might be useful.
If we shutdown the CLI and restart with an ng serve that will compile fine and the error disappears.
The text was updated successfully, but these errors were encountered:
Bug Report or Feature Request (mark with an
x
)Versions.
Repro steps.
The log given by the failure.
Mention any other details that might be useful.
If we shutdown the CLI and restart with an ng serve that will compile fine and the error disappears.
The text was updated successfully, but these errors were encountered: