After upgrading to Angular 14.2, we are getting the following exception when navigating to a component with the angular datatables on it:
Error: inject() must be called from an injection context
at injectInjectorOnly (http://localhost:44410/vendor.js:52632:11)
at ɵɵinject (http://localhost:44410/vendor.js:52648:55)
at Module.ɵɵdirectiveInject (http://localhost:44410/vendor.js:75080:29)
at NodeInjectorFactory.DataTableDirective_Factory [as factory] (http://localhost:44410/vendor.js:108429:105)
at getNodeInjectable (http://localhost:44410/vendor.js:144323:38)
at instantiateAllDirectives (http://localhost:44410/vendor.js:155193:23)
at createDirectivesInstances (http://localhost:44410/vendor.js:154526:3)
at Module.ɵɵelementStart (http://localhost:44410/vendor.js:158142:5)
at UserListComponent_Template (http://localhost:44410/src_app_components_management_user_user_module_ts.js:369:69)
at executeTemplate (http://localhost:44410/vendor.js:154488:5)
at resolvePromise (http://localhost:44410/polyfills.js:9200:19)
at resolvePromise (http://localhost:44410/polyfills.js:9147:9)
at http://localhost:44410/polyfills.js:9274:9
at _ZoneDelegate.invokeTask (http://localhost:44410/polyfills.js:8221:171)
at Object.onInvokeTask (http://localhost:44410/vendor.js:170698:25)
at _ZoneDelegate.invokeTask (http://localhost:44410/polyfills.js:8221:54)
at Zone.runTask (http://localhost:44410/polyfills.js:7982:37)
at drainMicroTaskQueue (http://localhost:44410/polyfills.js:8430:23)
:microscope: Minimal Reproduction
StackBlitz/GitHub Link:
Step-by-step Instructions:
:8ball: Expected behavior
A clear and concise description of what you expected to happen.
:beetle: bug report
After upgrading to Angular 14.2, we are getting the following exception when navigating to a component with the angular datatables on it:
:microscope: Minimal Reproduction
StackBlitz/GitHub Link:
Step-by-step Instructions:
:8ball: Expected behavior
A clear and concise description of what you expected to happen.
:camera: Screenshots
:globe_with_meridians: Your Environment
:memo: Additional context