Closed paha77 closed 11 months ago
AFAICT, this is nothing that hafas-client
has control over, so I can't help you, sorry.
Using the type: module
directive, it denotes itself as an ESM package.
It seems like your code is getting transpiled to require()
calls, which then fails because hafas-client
is not getting transpiled (and because Node's require()
does not support ESM).
I'm trying to create a client within an nestjs-console command:
but get the following error: