我非常想在项目中包含Aurelia-Bootstrap-Datetimepicker和aurelia-datatable。我逐字关注了这两个教程:
https://www.npmjs.com/package/aurelia-bootstrap-datetimepicker
https://www.npmjs.com/package/aurelia-datatable
不幸的是,他们两个都遇到同样的问题:
Unhandled Promise Rejection: Error: Unable to find module with ID: aurelia-bootstrap-datetimepicker
Unhandled Promise Rejection: Error: Unable to find module with ID: aurelia-datatable
我观察到此错误是由于在main.ts中包含插件引起的,例如:
export function configure(aurelia: Aurelia) {
aurelia.use
.standardConfiguration()
.plugin(PLATFORM.moduleName('aurelia-validation'))
.feature(PLATFORM.moduleName('resources/index'))
.plugin('aurelia-bootstrap-datetimepicker');
aurelia.use.developmentLogging(environment.debug ? 'debug' : 'warn');
if (environment.testing) {
aurelia.use.plugin(PLATFORM.moduleName('aurelia-testing'));
}
aurelia.start().then(() => aurelia.setRoot(PLATFORM.moduleName('app')));
}
是否有任何开发人员已经在他/她的项目中成功配置了这两者?我可以创建要点或其他东西来共享更多内容。
或者向我建议其他一些教程来满足这两个目的。任何帮助将不胜感激。
我非常想在我的项目中加入Aurelia-Bootstrap-Datetimepicker和aurelia-datatable。我逐字遵循了这两个教程:https://www.npmjs.com/package/aurelia-bootstrap -...
由于您将Aurelia与Webpack一起使用,请尝试使用以下方法初始化插件