我正在尝试将收缩缩放与我的angular 4应用程序集成,我在生产过程中遇到了这个错误,在我的本地机器上运行得很好。
我对angular非常陌生,任何帮助都将不胜感激。
ERROR in Metadata version mismatch for module /home/circleci/www-arthcloud/node_modules/ngx-pinch-zoom/ngx-pinch-zoom.d.ts, found version 4, expected 3
ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in '/home/circleci/www-arthcloud/src'
@ ./src/main.ts 3:0-74
@ multi ./src/main.ts
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Exited with code 1发布于 2019-07-12 21:34:14
使用ngx-pinch-zoom版本1.0.0,它在angular 4上工作得很好。
我不知道这是不是很好的做法,但这也解决了我的问题,在ngx-pinch-zoom.metade.js文件中编辑版本:4到版本:3
https://stackoverflow.com/questions/56911941
复制相似问题