Closed Sieabah closed 2 years ago
Bug description
I believe this is a dependency issue or a type definition issue. The library does not correctly compile on typescript 4.6.3.
Expected behavior
Should compile, or at least not install for unsupported typescript versions.
#12 13.11 node_modules/music-metadata/lib/apev2/APEv2Token.d.ts:2:27 - error TS2307: Cannot find module 'strtok3/core' or its corresponding type declarations. #12 13.11 #12 13.11 2 import { IGetToken } from 'strtok3/core'; #12 13.11 ~~~~~~~~~~~~~~ #12 13.11 node_modules/music-metadata/lib/core.d.ts:3:26 - error TS2307: Cannot find module 'strtok3/core' or its corresponding type declarations. #12 13.11 #12 13.11 3 import * as strtok3 from 'strtok3/core'; #12 13.11 ~~~~~~~~~~~~~~ #12 13.11 node_modules/music-metadata/lib/core.d.ts:5:27 - error TS2307: Cannot find module 'strtok3/core' or its corresponding type declarations. #12 13.11 #12 13.11 5 export { IFileInfo } from 'strtok3/core';
Seems that some tool you are using does not support ESM subpath exports correctly. Best to knock on their door. I cannot exclude those tools from using this module.
Bug description
I believe this is a dependency issue or a type definition issue. The library does not correctly compile on typescript 4.6.3.
Expected behavior
Should compile, or at least not install for unsupported typescript versions.