未找到模块:错误:无法解析“jspdf-autoTable”

Module not found: Error: Can't resolve 'jspdf-autoTable'

提问人:Maddurivenkys 提问时间:11/8/2023 更新时间:11/8/2023 访问量:17

问:

找不到模块:错误:无法解决“jspdf-autoTable”错误,即使它存在于node_modules文件夹中。我正在使用以下版本

“jspdf”: “2.5.1”, “jspdf-autotable”: “3.6.0” 和 Angular 8.x

我在tsconfig.json中添加了这些

“types”: [“node”,“jspdf-autotable”] 并在angular.json文件中将这些添加到脚本部分下。

"node_modules/jspdf/dist/jspdf.es.min.js",
"node_modules/jspdf-autotable/dist/jspdf.plugin.autotable.js"   

但似乎都不起作用。如果有人对此有任何建议,请告诉我。谢谢。

angular jspdf-autotable

评论


答: 暂无答案