Open josephemorgan opened 3 months ago
I'm wondering if this issue is related, until I opened the REPL, the the only message I was seeing was identical to what's described here: https://github.com/mxsdev/nvim-dap-vscode-js/issues/48#issue-1777698241
The Problem
Unable to debug anything that has an ESM import (which is the standard for writing TS as far as I'm aware).
Debugging works in single-file typescript programs. Once there's an ESM module import, the following error appears in the REPL and the debugger disconnects:
What I tried
Changing
type
tomodule
inpackage.json
changes the error in the REPL to the following:The warning suggests changing the file extension to
mjs
, which doesn't make sense, tried changing to 'mts' instead an got the same error as initially in the REPLTried switching to commonjs module syntax
No combination of ts/mts extensions or
"type" = "module"
inpackage.json
would allow the debugger to run without a similar message in the repl.My config is basically copy/pasted from the docs here,
vscode-js-debug
was cloned and built today, as were basically all of the nvim plugins I'm using.nvim: 0.9.5
Reproduction
I've set up the most basic, default Hello World typescript project I can image: https://github.com/josephemorgan/ts_helloworld