Error: Type SwitchModule does not have 'ɵmod' property.

I am experiencing this error and I do not know what to do. This is my first time using syncfusion. Hope someone could help.

Uncaught Error: Type SwitchModule does not have 'ɵmod' property.
at getNgModuleDef (core.js:1119)

at recurse (core.js:25298)
at recurse (core.js:25309)
at registerNgModuleType (core.js:25294)
at new NgModuleFactory$1 (core.js:25408)
at compileNgModuleFactory__POST_R3__ (core.js:29107)
at PlatformRef.bootstrapModule (core.js:29357)
at Module.4431 (main.ts:11)
at __webpack_require__ (bootstrap:19)
at __webpack_exec__ (main.js:4719)



Uncaught (in promise): Error: inject() must be called from an injection context

Error: inject() must be called from an injection context at injectInjectorOnly (core?163d:4770) at ɵɵinject (core?163d:4780) at Module.ɵɵdirectiveInject (core?163d:14690) 

 at NodeInjectorFactory.ContextMenuComponent_Factory [as factory] (ej2-angular-navigations.js:491) 

 at getNodeInjectable (core.js:3549) at instantiateAllDirectives (core.js:10278) 

 at createDirectivesInstances (core.js:9627) at Module.ɵɵelementStart (core.js:14880) 

 at SchedulerMainViewComponent_Template (scheduler-main-view.component.html:3) 

 at executeTemplate (core.js:9598) at resolvePromise (zone.js:1213)

at resolvePromise (zone.js:1167) 

 at zone.js:1279 at ZoneDelegate.invokeTask (zone.js:406) 

 at Object.onInvokeTask (core.js:28692) 

 at ZoneDelegate.invokeTask (zone.js:405) 

 at Zone.runTask (zone.js:178) 

 at drainMicroTaskQueue (zone.js:582)


1 Reply

AS Aravinthan Seetharaman Syncfusion Team August 18, 2021 03:45 AM UTC

Hi BOB, 
 
Thanks for contacting Syncfusion Support. 
 
We have checked your query in our latest version 19.2.0.56. We cannot reproduce your reported issue in our end. For your reference we have prepared sample here. 
 
 
For more details, please refer the below UG link.  
 
 
 
If you are still facing the issue, kindly share the below details. 
 
  • If possible, try to reproduce the reported issue in provided sample or share the issue reproducible sample.
  • Please share us the Switch component related code snippet
  • Please share us the video demonstration of this issue.
  • Please share us the Syncfusion Package Version.
 
Please provide the above requested information, based on that we will check and provide you a better solution quickly. 
 
Regards, 
Aravinthan S 


Loader.
Up arrow icon