I have created addins previously but never both as a newer Angular standalone component and also using SkyUX components.
When I attempt to load my addin I get the following error caught in the bootstrap statement in main.ts.
main.ts:6 ERROR NullInjectorError: NullInjectorError: No provider for _SkyThemeService!
at NullInjector.get (core.mjs:1654:27)
at R3Injector.get (core.mjs:3093:33)
at R3Injector.get (core.mjs:3093:33)
at injectInjectorOnly (core.mjs:1100:40)
at ɵɵinject (core.mjs:1106:42)
at inject (core.mjs:1192:12)
at new _AddinClientService (blackbaud-skyux-lib-addin-client.mjs:55:26)
at Object.AddinClientService_Factory [as factory] (blackbaud-skyux-lib-addin-client.mjs:262:14)
at core.mjs:3219:47
at runInInjectorProfilerContext (core.mjs:866:9)
Has anybody encountered this? I have attempted to add both AddinClientService and SkyThemeService (which I do not use directly) to the providers array of my app.config.ts file as below:
export const appConfig: ApplicationConfig = {
providers: [
provideRouter(routes),
provideHttpClient(),
importProvidersFrom([
AddinClientService,
SkyThemeService
]),
]
};
Nothing that I do seems to help. Any thoughts about why this is happening?