Также я импортирую модуль в app.module.ts, но он выдал следующую ошибку в консоли и успешно скомпилировал
main.ts:12 NullInjectorError: R3InjectorError(AppModule)[ComponentLoaderFactory -> ComponentLoaderFactory -> ComponentLoaderFactory]:
NullInjectorError: No provider for ComponentLoaderFactory!
at NullInjector.get (http://localhost:4200/vendor.js:17796:27)
at R3Injector.get (http://localhost:4200/vendor.js:31509:33)
at R3Injector.get (http://localhost:4200/vendor.js:31509:33)
at R3Injector.get (http://localhost:4200/vendor.js:31509:33)
at NgModuleRef$1.get (http://localhost:4200/vendor.js:48851:33)
at Object.get (http://localhost:4200/vendor.js:46693:35)
at getOrCreateInjectable (http://localhost:4200/vendor.js:21303:39)
at Module.ɵɵdirectiveInject (http://localhost:4200/vendor.js:35426:12)
at NodeInjectorFactory.BsDropdownDirective_Factory [as factory] (http://localhost:4200/vendor.js:74670:545)
at getNodeInjectable (http://localhost:4200/vendor.js:21448:44)