Angular '=';应为@techiediaries/ngx qrcode/lib/qrcode.component.d.ts,第9行
我跑爱奥尼亚发球一切正常 但运行爱奥尼亚·科尔多瓦构建android——发布 我收到以下信息Angular '=';应为@techiediaries/ngx qrcode/lib/qrcode.component.d.ts,第9行,angular,cordova,ionic-framework,qr-code,Angular,Cordova,Ionic Framework,Qr Code,我跑爱奥尼亚发球一切正常 但运行爱奥尼亚·科尔多瓦构建android——发布 我收到以下信息 [13:53:01] typescript: ...LL/Desktop/full/node_modules/@techiediaries/ngx-qrcode/lib/qrcode.component.d.ts, line: 9 '=' expected. L8: value: string;
[13:53:01] typescript: ...LL/Desktop/full/node_modules/@techiediaries/ngx-qrcode/lib/qrcode.component.d.ts, line: 9
'=' expected.
L8: value: string;
L9: version: import("./qrcode.types").NgxQrcodeVersionType;
L10: errorCorrectionLevel: import("./qrcode.types").NgxQrcodeErrorCorrectionLevels;
[13:53:01] typescript: ...LL/Desktop/full/node_modules/@techiediaries/ngx-qrcode/lib/qrcode.component.d.ts, line: 10
'=' expected.
L9: version: import("./qrcode.types").NgxQrcodeVersionType;
L10: errorCorrectionLevel: import("./qrcode.types").NgxQrcodeErrorCorrectionLevels;
L11: margin: number;
我安装了@techiediaries/ngx qrcode,问题仍然存在我认为您的
TypeScript
版本与库使用的TypeScript
版本不匹配。库中的版本是“typescript”:“~3.8.3”
。package.json中的TypeScript
的版本是什么?如果低于此值,则必须升级Ionic
,以获得较新版本的TypeScript