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
In this repo, the only documented way of is to use ToastrModule.forRoot but this does not work:
Error: src/app/app.component.ts:105:3 - error NG2012: 'imports' contains a ModuleWithProviders value, likely the result of a 'Module.forRoot()'-style call. These calls are not used to configure components and are not valid in standalone component imports - consider importing them in the application bootstrap instead.
Here's the section of the angular docs that explain how to configure for this:
Many third party libraries have also been updated to support this provide-function configuration pattern. If a library only offers an NgModule API for its DI configuration, you can use the importProvidersFrom utility to still use it with bootstrapApplication and other standalone contexts:
With angular 14 and 15, we can build our apps with tree-shaking in mind and remove the need for
NgModule
s in our codebase.In this repo, the only documented way of is to use
ToastrModule.forRoot
but this does not work:Here's the section of the angular docs that explain how to configure for this:
The text was updated successfully, but these errors were encountered: