ngx-pinch-zoom 与 angular 4 错误的集成
integration of ngx-pinch-zoom with angular 4 error
我正在尝试将 Pinch zoom 与我的 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 version:4 中编辑为 version:3
我正在尝试将 Pinch zoom 与我的 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 version:4 中编辑为 version:3