问题描述
我添加了 handsontable-pro , numbro ,片刻, pikaday 和 ZeroClipboard 在我的package.json
依赖项中,例如:
I've added handsontable-pro, numbro, moment, pikaday and ZeroClipboard in my package.json
dependencies, e.g.:
"dependencies": {
"numbro": "^1.9.0",
"moment": "^2.14.1",
...
}
并将这些库导入到我的angular1.5 app.ts
文件中,如下所示:
and imported these libraries in my angular1.5 app.ts
file like this:
import 'handsontable-pro';
import 'numbro';
import 'moment';
...
运行npm install
,npm run build
并构建并运行我的项目后,我在Chrome开发人员工具的控制台中收到以下错误:
After running npm install
, npm run build
and also building and running my project, I'm getting the following error in the console of the developers tools of Chrome:
Uncaught Error: Cannot find module 'numbro'
at newRequire (handsontable.js:48)
at handsontable.js:55
at Object.23.cellTypes (handsontable.js:4238)
at newRequire (handsontable.js:53)
at handsontable.js:55
at Object.125.../node_modules/hot-builder/node_modules/handsontable/src/browser (handsontable.js:21831)
at newRequire (handsontable.js:53)
at outer (handsontable.js:61)
at handsontable.js:66
at handsontable.js:22
以及其余模块.有什么想法吗?谢谢.
And also for the rest of the modules. Any ideas on that? Thank you.
推荐答案
运行此命令npm install angular-handsontable
这将安装所需的依赖项.
run this commandnpm install angular-handsontable
this will install the required dependency.
https://handsontable.github.io/angular-handsontable/quick-start
这篇关于与Handsontable相关的错误找不到模块numbro,moment,pikaday,ZeroClipboard的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!