Monaco TypeScript master broken in amd build?
See original GitHub issuemonaco-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:
- Two days ago: 🟢 https://www.typescriptlang.org/play?ts=4.1.0-dev.20200906#code/MYewdgzgLgBAFgUwDZJDAvDARAdxAJyQBMsAoIA
- One day ago: 🟢 https://www.typescriptlang.org/play?ts=4.1.0-dev.20200907#code/MYewdgzgLgBAFgUwDZJDAvDARAdxAJyQBMsAoIA
- This morning: 🔴 https://www.typescriptlang.org/play?ts=4.1.0-dev.20200908#code/MYewdgzgLgBAFgUwDZJDAvDARAdxAJyQBMsAoIA
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:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Confirmed that the above PR fixes it 👍🏻
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