我安装了 npm i ngx-extended-pdf-viewer。然后在 package-cli.json 中添加这些 chages
"assets": ["assets","favicon.ico",{"glob": "**/*","input": "node_modules/ngx-extended-pdf-viewer/bleeding-edge/","output": "assets/" }]
然后我尝试在 angular-cli.json 中添加脚本,但我收到错误消息:
ENOENT: no such file or directory, open '/---/---/-----/----/src/node_modules/ngx-extended-pdf-viewer/assets/pdf.js'
"scripts": [ "node_modules/ngx-extended-pdf-viewer/assets/pdf.js", "node_modules/ngx-extended-pdf-viewer/assets/pdf.worker.js", "node_modules/ngx-extended-pdf-viewer/assets/viewer.js" ]
我无法运行项目。当它开始搜索路径时它将停止编译。我检查了路径。文件夹和文件正确存在。我很困惑。任何人遇到这个问题请帮我解决这个问题。我是角度的初学者。