Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular '=';应为@techiediaries/ngx qrcode/lib/qrcode.component.d.ts,第9行_Angular_Cordova_Ionic Framework_Qr Code - Fatal编程技术网

Angular '=';应为@techiediaries/ngx qrcode/lib/qrcode.component.d.ts,第9行

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;

我跑爱奥尼亚发球一切正常

但运行爱奥尼亚·科尔多瓦构建android——发布

我收到以下信息

   
    [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