【问题标题】:Angular "Ngx-Captcha" gives an error when run "ng build myAppName --prod" but without --prod is ok运行“ng build myAppName --prod”但没有 --prod 时,Angular“Ngx-Captcha”会出错
【发布时间】:2021-06-17 15:03:26
【问题描述】:

我在我的 Angular 7 项目中使用 Ngx-Captcha(版本 9.0.1)组件,但是当我使用 --prod 构建我的项目时,它给出了这个错误: ERROR in : Directive BaseReCaptchaComponent in ./node_modules/ngx-captcha/ngx-captcha.d.ts 没有选择器,请添加!

【问题讨论】:

    标签: angular


    【解决方案1】:

    这个错误是因为我使用的 ngx-captcha 版本(我的 Angular 项目版本是 7),当我使用 8.0.1 版本时,我的问题已修复。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-11-25
      • 1970-01-01
      • 1970-01-01
      • 2020-03-14
      • 2019-12-29
      • 2020-12-03
      • 2019-02-28
      相关资源
      最近更新 更多