vscode: Reloading extension host results in "Unable to open polyfills.js" error notification

Issue Type: Bug

Steps to reproduce:

  1. Start up the extension development host.
  2. Press ctrl+r to reload.
  3. The debugging window reports the following notification, and the extension host does not load the extension. This only happens on every other reload, so it alternates between loading correctly and throwing this error.
Unable to open 'polyfills.js': Unable to read file 'c:\Users\Matt\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\graceful-fs\polyfills.js' (Error: Unable to resolve non-existing file 'c:\Users\Matt\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\node_modules.asar\graceful-fs\polyfills.js').

VS Code version: Code - Insiders 1.49.0-insider (f694b07825a23005985b470e767a68927a83a553, 2020-08-19T05:47:42.278Z) OS version: Windows_NT x64 10.0.19041

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 8
  • Comments: 25 (20 by maintainers)

Commits related to this issue

Most upvoted comments

I get this quite often while trying F5 our extension as well. Same error as the OP.

I’m facing the same issue. How can it be solved?

Same here