简体   繁体   中英

export was not found error - after updating to angular-10

After updating my project to angular-10 i'm getting an error:

ERROR in ./src/someDir/someService.service.ts 17:33-14
"export 'format' was not found in 'some-library'

when going to 'some-library' there form function is exported

export function format(options?: LBSOptions): any;

any idea what could go wrong?

Just change your target in tsconfig.json to ES6 or above. I had the same problem and it helps me to fix it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM