我安裝了ng2-datetime#v1.1.4(不是RC5版本)並嘗試添加datetime組件到我的測試應用程序。我遇到了以下錯誤。請幫助,如果你知道它是什麼。謝謝。
browser_adapter.js:84 TypeError: $(...).datepicker is not a function
at NKDatetime.init (http://localhost:3000/main.bundle.js:27185:59)
at NKDatetime.ngAfterViewInit (http://localhost:3000/main.bundle.js:27115:15)
at DebugAppView._View_Crud0.detectChangesInternal (Crud.template.js:1428:62)
at DebugAppView.AppView.detectChanges (http://localhost:3000/vendor.bundle.js:60629:15)
at DebugAppView.detectChanges (http://localhost:3000/vendor.bundle.js:60734:45)
at DebugAppView.AppView.detectViewChildrenChanges (http://localhost:3000/vendor.bundle.js:60655:20)
at DebugAppView._View_Crud_Host0.detectChangesInternal (Crud.template.js:40:8)
at DebugAppView.AppView.detectChanges (http://localhost:3000/vendor.bundle.js:60629:15)
at DebugAppView.detectChanges (http://localhost:3000/vendor.bundle.js:60734:45)
at DebugAppView.AppView.detectContentChildrenChanges (http://localhost:3000/vendor.bundle.js:60647:20)
at DebugAppView._View_ServicesMain0.detectChangesInternal (ServicesMain.template.js:376:8)
at DebugAppView.AppView.detectChanges (http://localhost:3000/vendor.bundle.js:60629:15)
at DebugAppView.detectChanges (http://localhost:3000/vendor.bundle.js:60734:45)
at DebugAppView.AppView.detectViewChildrenChanges (http://localhost:3000/vendor.bundle.js:60655:20)
at DebugAppView._View_ServicesMain_Host0.detectChangesInternal (ServicesMain.template.js:37:8)
at DebugAppView.AppView.detectChanges (http://localhost:3000/vendor.bundle.js:60629:15)
at DebugAppView.detectChanges (http://localhost:3000/vendor.bundle.js:60734:45)
at DebugAppView.AppView.detectContentChildrenChanges (http://localhost:3000/vendor.bundle.js:60647:20)
at DebugAppView._View_App0.detectChangesInternal (App.template.js:88:8)
at DebugAppView.AppView.detectChanges (http://localhost:3000/vendor.bundle.js:60629:15)
at DebugAppView.detectChanges (http://localhost:3000/vendor.bundle.js:60734:45)
at DebugAppView.AppView.detectViewChildrenChanges (http://localhost:3000/vendor.bundle.js:60655:20)
at DebugAppView._View_App_Host0.detectChangesInternal (App.template.js:40:8)
at DebugAppView.AppView.detectChanges (http://localhost:3000/vendor.bundle.js:60629:15)
at DebugAppView.detectChanges (http://localhost:3000/vendor.bundle.js:60734:45)
at ViewRef_.detectChanges (http://localhost:3000/vendor.bundle.js:47800:66)
at http://localhost:3000/vendor.bundle.js:34125:85
我有同樣的問題......所有的包都裝......還我嘗試安裝分型定義引導-datetimepicker沒有結果。 – equintas