NGX-PINCH-ZOOM与Angular 4误差的集成



我正在尝试将捏缩放与我的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

使用ngx-pinch-Zoom 1.0.0版,其工作良好,可与Angular 4。

我不知道这是一个好练习,但这也解决了我的问题,在文件中编辑ngx-pinch-zoom.metadeta.js版本:4至版本:3

最新更新