Skip to content

Cannot use parseFile if the TypeScript compiler moduleResolution is set to bundler #2370

@lowvisiondave

Description

@lowvisiondave

Is there an existing issue for this?

  • I have searched the existing issues

music-metadata version

11.0.0

Current Behavior

TypeScript throw an error when doing the following:

import { parseFile } from "music-metadata";

Because node_modules/music-metadata/lib/core.d.ts does not include a type for parseFile.

Adding // @ts-expect-error allows the application to build successfully, so it seems to just a types issue.

Reproduction repository

Expected Behavior

I would expect the types to match the functions being exported.

Attached audio sample?

  • I have provided sufficient information to reproduce the issue

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions