-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Unable to use JSON modules with @swc-node/register
#774
Comments
yeliex
added a commit
to yeliex/swc-node
that referenced
this issue
May 27, 2024
yeliex
added a commit
to yeliex/swc-node
that referenced
this issue
May 27, 2024
yeliex
added a commit
to yeliex/swc-node
that referenced
this issue
May 27, 2024
yeliex
added a commit
to yeliex/swc-node
that referenced
this issue
May 27, 2024
Brooooooklyn
pushed a commit
that referenced
this issue
May 28, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've tried:
node --import @swc-node/register/esm-register script.ts
SWCRC=true node --import @swc-node/register/esm-register script.ts
SWC_NODE_PROJECT=null node --import @swc-node/register/esm-register script.ts
with no luck
If I set jsc.experimental.keepImportAssertions then I can get the cli to produce output that works.
Node v20.13.1
macOS 14.4.1 (23E224)
Yarn 4.2.2 (node_modules linker)
tsconfig.json
.swcrc
Reproduction: https://github.com/maxburs/swc-node
The text was updated successfully, but these errors were encountered: