-
Notifications
You must be signed in to change notification settings - Fork 37.7k
Closed
Labels
*as-designedDescribed behavior is as designedDescribed behavior is as designeddebugDebug viewlet, configurations, breakpoints, adapter issuesDebug viewlet, configurations, breakpoints, adapter issues
Description
- VSCode Version:1.47.0
- OS Version: macOS Mojave 10.14.6
- Node version: 14.5 (also reproduced with node 13.8)
Steps to Reproduce:
-
Reproduce the following file structure
package.json
{ "type": "module" }index.js
import foo from "./foo.js"; import bar from "./bar.js"; debugger; console.log(`${foo}${bar}`);
bar.js
export default "bar";
foo.js
export default "foo";
-
Click Run and Debug
-
Select Node.js
-
VsCode throw on every import as if file does not exists.
Does this issue occur when all extensions are disabled?: Yes
Check the following gif illustrating the issue:
The gif shows that <node_internals>/internal/url.js throw Invalid url errors on ./foo.js and ./bar.js. It seems node.js tries to perform the following code for some reason.
new URL("./foo.js", undefined)Metadata
Metadata
Assignees
Labels
*as-designedDescribed behavior is as designedDescribed behavior is as designeddebugDebug viewlet, configurations, breakpoints, adapter issuesDebug viewlet, configurations, breakpoints, adapter issues
