You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In relation to 32c1560 where the err.code was ERR_MODULE_NOT_FOUND in esm instead of MODULE_NOT_FOUND - if transpiling via ts-node and esm err.code is undefined. I'm guessing it's because ts-node generates it's own errors that don't have the err.code set.
Describe the bug
In relation to 32c1560 where the
err.code
wasERR_MODULE_NOT_FOUND
in esm instead ofMODULE_NOT_FOUND
- if transpiling viats-node
and esmerr.code
isundefined
. I'm guessing it's becausets-node
generates it's own errors that don't have theerr.code
set.There's an upstream issue in
ts-node
about this, but a temporary fix is to adderr.code !== undefined
hereYour Example Website or App
...
Steps to Reproduce the Bug or Issue
@graphql-codegen/near-operation-file
.ts
file viats-node
usingNODE_OPTIONS='--loader ts-node/esm' graphql-codegen-esm
Expected behavior
@graphql-codegen/near-operation-file
to be loadedScreenshots or Videos
No response
Platform
graphql
version: 16.6.0@graphql-codegen/*
version(s):Codegen Config File
Additional context
tsconfig.json
:The text was updated successfully, but these errors were encountered: