1
0
mirror of synced 2026-05-22 14:43:19 +00:00

Add FAQ: Using music-metadata with TypeScript and module-resolution set to bundler.

This commit is contained in:
Borewit
2025-03-06 21:05:25 +01:00
committed by Borewit
parent df94174c94
commit 48aee9b49c
+7
View File
@@ -843,6 +843,13 @@ There are multiple ways of achieving this:
}
```
### Using music-metadata with TypeScript and module-resolution set to bundler.
If the TypeScript compiler option [`moduleResolution`](https://www.typescriptlang.org/tsconfig/#moduleResolution)
is set to `"bundler"`, it does not set the ECMAScript `"node"` condition, causing the Node specific function fail to import.
This is the case using Next.js. See [issue #2370](https://github.com/Borewit/music-metadata/issues/2370) how to resolve that.
## Licence
This project is licensed under the [MIT License](LICENSE.txt). Feel free to use, modify, and distribute as needed.