0

Can someone help me out please, if I miss anything on this? I'm getting an error where it cannot find the corresponding JS File using VSCode.

I'm just a beginner in typescript. Many thanks in advance.

My launch.json looks like this.

"configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "console": "integratedTerminal",
            "skipFiles": [
                "<node_internals>/**"
            ],
            "preLaunchTask": "tsc: build - tsconfig.json",
            "program": "${workspaceFolder}/src/index.ts",
            "outFiles": [
                "${workspaceFolder}/build/*.js"
            ]
        }
    ]

enter image description here

1 Answer 1

1

Yea, sorry about this. I got a chance to answer my own question ^ ..

The reason is in my tsconfig.json -> sourceMap is NOT defined, you need to add and set it to true.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.