-
-
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
Decorators support with @node-swc/register sparks problems. Nothing works :'( #705
Comments
Is this issue related to the one I have? I am still trying to figure out how to fix this issue. Please if anyone can help I would be more than grateful! |
Is this repository still maintained? |
@ElMehdiBouamama you should provide a minimal reproducible repo for your issue so that I can debug it |
Got the same issue.
{
"compilerOptions": {
"module": "NodeNext",
"moduleResolution": "NodeNext",
"target": "ESNext",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"esModuleInterop": true
}
} Small example to reproduce:
import { Module } from '@nestjs/common';
@Module({})
export class AppModule {} run SWCRC=true SWC_NODE_PROJECT=./tsconfig.json node --import @swc-node/register/esm-register ./src/server.ts Error:
node: 22.7.0
|
When trying to transcompile my typescript files I get this error :'(
Node: 19.8.1
Npm: 9.6.2
Here is my .swcrc file:
Here is my tsconfig.json file:
Any idea on how to fix the issue? Thank you in advance i have been stuck with this issue since 3 days now :(
Side note: The error appeared once I upgraded my node version to 19.x
The text was updated successfully, but these errors were encountered: