问题遇到的现象和发生背景
接手别人的项目,就有这个问题,在本地运行是能的就是抱着个错,然后打包不行,求问哪位解决一下
https://img-mid.csdnimg.cn/release/static/image/mid/ask/418290170246197.png
操作环境、软件版本等信息
报错
一、Type '{ id: any; enterpriseName: any; enterpriseAbbreviation: any; enterpriseTax: any; businessLicense: never; legalRepresentative: any; province: any; bankAccount: any; bankAccounts: any; enterprisePerson: any; phoneNum: any; companyTel: any; companyAddress: any; legalRepresentativeIdCard: any; }' is not assignable to type '{ enterpriseName: string; enterpriseAbbreviation: string; enterpriseTax: string; businessLicense: never[]; legalRepresentative: string; province: {}; bankAccount: string; bankAccounts: string; ... 4 more ...; legalRepresentativeIdCard: string; }'.
Object literal may only specify known properties, and 'id' does not exist in type '{ enterpriseName: string; enterpriseAbbreviation: string; enterpriseTax: string; businessLicense: never[]; legalRepresentative: string; province: {}; bankAccount: string; bankAccounts: string; ... 4 more ...; legalRepresentativeIdCard: string; }'.
二、Property 'id' does not exist on type '{ bankAccount: string; bankOfDeposit: string; contactsTel: string; enterpriseAbbreviation: string; enterpriseAddress: string; enterpriseContacts: string; enterpriseName: string; enterpriseTaxNo: string; ... 4 more ...; businessLicenseId: string; }
三、
Property 'id' does not exist on type '{ enterpriseName: string; enterpriseAbbreviation: string; enterpriseTax: string; businessLicense: never[]; legalRepresentative: string; province: {}; bankAccount: string; bankAccounts: string; ... 4 more ...; legalRepresentativeIdCard: string; }'.