Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97355

VS code won't debug a module file with 'cjs' file extension;

$
0
0

I'm using 'cjs' for CommonJS source ('mjs' for es modules).

Using node.js v13.7 w/vscode.

VSCode debugger fails to run the 'cjs' file with:

Cannot launch program... setting the 'outFiles' attribute might help.

Debugger works if I change file extension to 'js'. screenshot


Viewing all articles
Browse latest Browse all 97355

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>