Angular 6 - 安装 ng-recaptcha 出现错误 TS1005:';'预期的
Angular 6 - Installing ng-recaptcha gives error TS1005: ';' expected
我想在我的 Angular 6 项目中使用 ReCaptcha V3,所以我使用命令安装了 ng-recaptcha
npm i ng-recaptcha --save
根据文档 https://www.npmjs.com/package/ng-recaptcha#installation。
安装后出现“ng-recaptcha@7.0.1 requires a peer of @angular/core@^11.0.0 but none is installed”的错误,我不想将“@angular/core”升级到 11.0.0,因为我当前的项目使用 6.1.0.
当我尝试 运行 应用程序时出现错误
node_modules/ng-recaptcha/recaptcha/recaptcha.component.d.ts(5,43) 中的错误:错误 TS1005:“;”预计
我不确定任何较低版本的 ng-recaptcha 是否能解决我的问题。
请帮忙
ng-recaptch 版本 6.1 需要 Angular 版本 6 及更高版本
"peerDependencies": {
"@angular/core": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0"
},
我想在我的 Angular 6 项目中使用 ReCaptcha V3,所以我使用命令安装了 ng-recaptcha
npm i ng-recaptcha --save
根据文档 https://www.npmjs.com/package/ng-recaptcha#installation。
安装后出现“ng-recaptcha@7.0.1 requires a peer of @angular/core@^11.0.0 but none is installed”的错误,我不想将“@angular/core”升级到 11.0.0,因为我当前的项目使用 6.1.0.
当我尝试 运行 应用程序时出现错误 node_modules/ng-recaptcha/recaptcha/recaptcha.component.d.ts(5,43) 中的错误:错误 TS1005:“;”预计
我不确定任何较低版本的 ng-recaptcha 是否能解决我的问题。 请帮忙
ng-recaptch 版本 6.1 需要 Angular 版本 6 及更高版本
"peerDependencies": {
"@angular/core": "^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0"
},