I can't get Angular Animations to work on my standalone components which I posted another question about here a couple weeks ago. I'm trying to create a stackblitz demo to add to it as well as get help from others elsewhere which can be viewed here. When I add the BrowserAnimationsModule to the app I get the error and it goes on to say
Providers from the
BrowserModulehave already been loaded. If you need access to common directives such as NgIf and NgFor, import theCommonModuleinstead.
I came across another question on here about that error and the answer was to use the NoopAnimationsModule instead so I tried that and still got the same error. Does anybody know why this is happening and how to fix it?
I found the solution. in the
main.tsfile I need to add theprovideAnimations()method to aprovidersarray in thebootstrapApplication()method like this