#After upgrading to ng 16 all my templates are generating errors on any angular directives.

28 messages · Page 1 of 1 (latest)

potent estuary
#

What is your IDE ? WebStorm ?

#

Just in case, can you restart the TypeScript service ?

#

Then, restart your IDE, I had some similar issues after npm install sometimes with IntelliJ

#

Right click, on the bottom bar

#

Then check the TypeScript option

#

I'm on IntelliJ, but it should be similar

#

Yes

#

Or

#

Sorry :/

#

Another idea : shouldn't the templateUrl be relative ? I wonder if it shouldn't be : './actions-bar.component.html'

low flame
#

yes it should be ' ' ?

#

and for inline template or style

lament fox
#

Shouldn't matter, at least not for serve or build. not sure if the IDE has an issue with it

low flame
#

can you try to remove build folder . Angular and rebuild ?

lament fox
#

Guess it doesn't since the code was the same before the upgrade

potent estuary
#

What is your WebStorm version ?

#

I don't know, yeah you could try

#

I have some ideas, but I'm afraid to make you waste your time

#

:o

lament fox
#

Is the Angular plugin that intelliJ uses configurable/upgradeable?

#

oh...

potent estuary
#

Great news ^^

#

Cheers ! :)

lament fox
#

Is there a way for you to see the version of the Angular plugin you have installed in your IDE?

lament fox
#

ok, that seems recent enough, latest version is 231.8770.67 from what I could find. I know that an outdated angular language service in VS Code can cause issues, but since jetbrains have their own implementation I'm not sure if it behaves the same