Skip to content
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

Cannot find module './swc.darwin-universal.node' when debugging with skipFiles option in VS Code #783

Open
bamboo512 opened this issue Jun 1, 2024 · 1 comment

Comments

@bamboo512
Copy link

Cannot find module './swc.darwin-universal.node' when debugging with skipFiles option in the launch.json file.
截屏2024-06-01 12 52 51_副本

Here is my launch.json:

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "name": "swc-node Debugger",
            "request": "launch",
            "cwd": "${workspaceFolder}",
            "runtimeExecutable": "node",
            "args": [
                "-r",
                "@swc-node/register",
                "index.ts"
            ],
            "skipFiles": [
                "<node_internals>/**/*.js",
                "${workspaceFolder}/node_modules/**/*.js",
            ],
            "console": "integratedTerminal",
            "internalConsoleOptions": "neverOpen",
        },
    ]
}
@bamboo512
Copy link
Author

I have already tried reinstalling @swc-node/register, deleting entire node_modules folder and reinstalling modules with pnpm, but neither works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant