Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

platform.js cannot read property 'bind' of undefined #2328

Closed
starpit opened this issue Jan 31, 2021 · 2 comments
Closed

platform.js cannot read property 'bind' of undefined #2328

starpit opened this issue Jan 31, 2021 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug regression
Milestone

Comments

@starpit
Copy link

starpit commented Jan 31, 2021

  • VSCode Version: monaco-editor 0.22.1
  • OS Version: any

Steps to Reproduce:

  1. upgrade from monaco-editor 0.21.2 to 0.22.1
  2. observe the following error message in the console:

node_modules/monaco-editor/esm/vs/base/common/platform.js? 148 Uncaught TypeError: Cannot read property 'bind' of undefined

This regression seems to be caused by this change: microsoft/vscode@76b7331#diff-562a9dd5a425180aed71854ee8a3f2705d38e9f723d763eff63da148456a71e6L199

Whereas previously you were guarding for process.nextTick being undefined, now you are not. In certain webpack configurations, the process shims may not define process.nextTick

Does this issue occur when all extensions are disabled?: Yes, though we have only tried monaco-editor

@alexdima alexdima transferred this issue from microsoft/vscode Feb 1, 2021
@alexdima alexdima added this to the January 2021 milestone Feb 1, 2021
@alexdima alexdima added bug Issue identified by VS Code Team member as probable bug regression labels Feb 1, 2021
alexdima added a commit to microsoft/vscode that referenced this issue Feb 1, 2021
…process` can be defined, while `process.nextTick` is not
@alexdima
Copy link
Member

alexdima commented Feb 1, 2021

Released monaco-editor@0.22.2

@starpit
Copy link
Author

starpit commented Feb 1, 2021

Verified! Thanks so much for the quick fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug regression
Projects
None yet
Development

No branches or pull requests

2 participants