question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Monaco TypeScript master broken in amd build?

See original GitHub issue

monaco-editor version: 2a99615 Browser: N/A OS: N/A Playground code that reproduces the issue: I don’t think its set up to run on commits

The TS site builds a nightly version of both Monaco Editor and Monaco TS here

The build yesterday broke at runtime in what I think is monaco-typescript code:

The raised issue is n.Emitter is not a constructor and when you go back in the trace it is requiring monaco.contribution.ts where it fails, likely here:

private _onDidChange = new Emitter<void>();
private _onDidExtraLibsChange = new Emitter<void>();

Maybe https://github.com/microsoft/monaco-typescript/commit/ee95401a407e42e1044813087ba6dc621ecc25e9 ?

( Left notes because I’m about go to hit meetings for the day )

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ortacommented, Sep 9, 2020

Confirmed that the above PR fixes it 👍🏻

1reaction
ortacommented, Sep 9, 2020

Cool, yeah, the TS site uses the release versions- I think it was that the change to add the dep wasn’t applied to all the parts in an amd release build. See #2118

Read more comments on GitHub >

github_iconTop Results From Across the Web

Monaco Editor
The Monaco Editor is the code editor that powers VS Code. A good page describing the code editor's features is here. It is...
Read more >
UNPKG - @monaco-editor/react
This library handles the setup process of the `monaco-editor` and provides a clean `API` to interact with `monaco` from any `React` environment.
Read more >
monaco-editor - npm
Monaco Editor. Build Status. The Monaco Editor is the code editor which powers VS Code, with the features better described here.
Read more >
Monaco Editor missing modules - Stack Overflow
I say no as is as it ends here: https://github.com/Microsoft/monaco-typescript/blob/master/src/worker.ts#L70 : it looks for the model - but ...
Read more >
Source - GitHub
Inlay hints can be enabled like this: ```ts monaco.languages.typescript. ... github.com/microsoft/monaco-editor-samples/tree/master/browser-amd-shadow-dom) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found