the1812 / flac-tagger

Pure JavaScript FLAC Tag writer and reader.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing .js extensions makes the ESM build non functional

RDeluxe opened this issue · comments

Hello sir. Thank you very much for this package, I've been looking for such a tool for a while (my version was ... not optimal).

However your imports are missing .js extension, which make the ESM module non functional.

There is a lot of discussion about TS not appending the extension automatically (the TS dev refuse to do so : see one issue)

Sadly it seems that the only solution is to do it ourselves, as Node and browsers require the file extension for ESM modules.

To enforce the use of extension, we could change the moduleResolution parameter to NodeNext or Node16 in tsconfig.

"moduleResolution": "Node16".

Source