[英]ngMaterialDatePicker Dependency injection fails during gulp serve:dist
I have used ngMaterialDatePicker
which works fine in dev mode but when I tried to run using gulp serve:dist
I am getting the below mentioned error can anyone tell me why it has a strange behaviour like this: 我使用了ngMaterialDatePicker
在开发模式下可以正常工作,但是当我尝试使用gulp serve:dist
运行时,出现以下错误,谁能告诉我为什么它有这样的奇怪行为:
Error: 错误:
Module 'ngMaterialDatePicker' is not available! 模块'ngMaterialDatePicker'不可用! You either misspelled the module name or forgot to load it. 您可能拼错了模块名称,或者忘记了加载它。 If registering a module ensure that you specify the dependencies as the second argument. 如果注册模块,请确保将依赖项指定为第二个参数。
可能问题出在uglyfing js代码中,您是否使用ng-annotate或babel插件进行构建命令?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.