Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.14.0 : TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" #830

Open
gordielachance opened this issue Nov 21, 2023 · 2 comments

Comments

@gordielachance
Copy link

Hello, since I updated from 0.11.0 to 0.14.0, I get this error fired when running my tests :

TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /home/gordie/Local Sites/newspiff/spiff-clients/src/services/musicbrainz/tests.ts
    at new NodeError (node:internal/errors:399:5)
    at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:79:11)
    at defaultGetFormat (node:internal/modules/esm/get_format:121:38)
    at defaultLoad (node:internal/modules/esm/load:81:20)
    at nextLoad (node:internal/modules/esm/loader:163:28)
    at ESMLoader.load (node:internal/modules/esm/loader:605:26)
    at ESMLoader.moduleProvider (node:internal/modules/esm/loader:457:22)
    at new ModuleJob (node:internal/modules/esm/module_job:64:26)
    at ESMLoader.#createModuleJob (node:internal/modules/esm/loader:480:17)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:434:34)

I cleared the node cache - still get this.
I reverted to 0.11.0 : no more bug.

Hard to debug but it seems it is related to your update.
Any clue of what it might be ?

Thanks !

@Borewit
Copy link
Owner

Borewit commented Nov 22, 2023

As mentioned in the release notes, since version v0.13.0 the package has been changed to a pure ECMAScript Module.

@skizzo
Copy link

skizzo commented Apr 3, 2024

@gordielachance did you manage to resolve this? I'm getting the same error. Working with node for 7 years now and never encountered a package that's so unnecessarily hard to use in a default environment..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants