Trying to use Arktype with nestjs module problems
I don't undestand why i'm getting problems with
I'm using this tsconfig
Whenever I switch my module to esnext all the imports no longer are working
3 Replies
ArkType only supports ESM, which is supported by modern runtimes including node, even from CJS.
You could try enabling
"type": "module"
in your package.json or just upgrading your runtime to a newer version of Node.updating node version actually worked, why didn't i think of that
thank you
sorry for being a moron
you're not a moron! that stuff has plagued the ecosystem for years
hopefully soon with new versions being installed that support it by default it will be less and less frequent to run into that stuff, but always happy to help however I can!