0

I'm trying to create a mask in a Custom Element in Angular for an application in Blazor, when I run the application on the Angular server everything works, but on the Blazor server I get a NullInjectorError message.

ERROR NullInjectorError: R3InjectorError(xe)[Je -> Je -> Je]: 
  NullInjectorError: No provider for Je!
    at e.value (vendor.js:1:693726)
    at e.value (vendor.js:1:695645)
    at e.value (vendor.js:1:695645)
    at e.value (vendor.js:1:695645)
    at i.value (vendor.js:1:727330)
    at Object.get (vendor.js:1:723758)
    at $a (vendor.js:1:658854)
    at pr (vendor.js:1:659596)
    at Object.gl (vendor.js:1:702989)
    at He.ɵfac (vendor.js:1:420267)

My Module Class:

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SharedModule } from '../shared.module';
import { CompanyManagementRoutingModule } from './company-management-routing.module';
import { CompanyManagementComponent } from './company-management.component';
import { CompanyEditComponent } from './company-edit/company-edit.component';
import { IConfig, NgxMaskModule } from 'ngx-mask';

export const options: Partial | (() => Partial) = null;

@NgModule({
    imports: [
        CommonModule,
        NgxMaskModule.forRoot(options),
        CompanyManagementRoutingModule,
        SharedModule
    ],
    declarations: [CompanyManagementComponent, CompanyEditComponent],
    entryComponents: [CompanyEditComponent],
})
export class CompanyManagementModule { }

I created a question on ngx-mask's github, at this link: https://github.com/JsDaddy/ngx-mask/issues/1038

abeppler
  • 13
  • 4

0 Answers0