skip to Main Content

Visual Studio Code – VSCode ts-node/register launches old compiled JS file instead of the specified TS file

I have the following launch.json for my TypeScript project in Visual Studio Code: { "version": "0.2.0", "configurations": [ { "name": "Launch task", "type": "node", "request": "launch", "program": "${workspaceFolder}/src/index.ts", "cwd": "${workspaceFolder}/src", "runtimeArgs": [ "-r", "ts-node/register" ], "env": { "NODE_ENV": "development" },…

VIEW QUESTION

Visual Studio Code – Why do I get "SyntaxError: Unexpected token '.' along with /ms-vscode.js-debug/src/bootloader.js:8" in VS Code 1.77 with NodeJS versions <= 12?

I've seen this error in several Stack Overflow posts, but none of them are quite like this, nor have they help. Every time I try to run my program I see this: /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/ms-vscode.js-debug/src/bootloader.js:8 `+r)),e.removeListener("error",er),e.destroy()}});var Rs=V((Vu,Cs)=>{"use strict";var xa=Object.create,pt=Object.defineProperty,ba=Object.getOwnPropertyDescriptor,Ss=Object.getOwnPropertyNames,va=Object.getPrototypeOf,Sa=Object.prototype.hasOwnProperty,Ea=(e,t)=>function(){return t||(0,e[Ss(e)[0]])((t={exports:{}}).exports,t),t.exports},Ta=(e,t)=>{for(var…

VIEW QUESTION
Back To Top
Search