Skip to content

Cannot set property on #<Object> which has only a getter #39195

Closed
@mjbvz

Description

@mjbvz

TypeScript Version: 4.0.0-dev.20200622

Search Terms:

Repo

  1. In the VS Code code base
  2. Revert this change in grid.ts
  3. Recompile VS Code (yarn run watch
  4. Start VS Code

Bug:

VS Code doesn't start due to the following exception

/Users/matb/projects/vscode/out/bootstrap-window.js:215 TypeError: Cannot set property GridViewSizing of #<Object> which has only a getter
    at Object.<anonymous> (/Users/matb/projects/vscode/out/vs/base/browser/ui/grid/grid.js:136)
    at Function.Module._invokeFactory (/Users/matb/projects/vscode/out/vs/loader.js:1040)
    at Module.complete (/Users/matb/projects/vscode/out/vs/loader.js:1050)
    at ModuleManager._onModuleComplete (/Users/matb/projects/vscode/out/vs/loader.js:1671)
...

This is triggered on a line that looks like:

    exports.GridViewSizing = Sizing;

Metadata

Metadata

Assignees

Labels

Fix AvailableA PR has been opened for this issueNeeds InvestigationThis issue needs a team member to investigate its status.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions