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.

unknown Expression of type "ClassExpression

See original GitHub issue

**monaco-editor version:0.21.2 **Browser:Chrome **OS:Macos Playground code that reproduces the issue: **Typescript version 4.0.2

TypeScript compiler gives an error node_modules/monaco-editor/esm/vs/editor/contrib/suggest/wordDistance.js: unknown Expression of type "ClassExpression" When I install versions 0.21.2 and 0.21.1 but version 0.2.0 works fine.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:15

github_iconTop GitHub Comments

3reactions
JoshClosecommented, Oct 27, 2020

create-react-app 4.0.0 has been released and supports typescript 4. I still have to downgrade to monoco-editor 0.20.0 for it to build.

1reaction
JeremyGrieshopcommented, Jun 18, 2021

Has anyone found a workaround for this? I’m surprised nobody has tried to build ESM Monaco-editor within react in the past 9 months.

The FB regenerator project looks like it hasn’t had a public release in over 4 years.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Suprising Babel error after upgrading a Node.js module ...
... <path>/node_modules/monaco-editor/esm/vs/editor/contrib/suggest/wordDistance.js: unknown Expression of type "ClassExpression" at Array.
Read more >
babel/types
AST Node ClassExpression shape: id : Identifier (default: null ); superClass : Expression (default: null ); body : ClassBody (required) ...
Read more >
@babel/plugin-transform-member-expression-literals | Yarn
Intro. Babel is a tool that helps you write code in the latest version of JavaScript. When your supported environments don't support certain...
Read more >
Class: Expression - LiquidJS
+ new Expression( tokens : IterableIterator‹Token›): Expression ... undefined | false | true): Generator‹unknown, unknown, unknown›.
Read more >
Documentation - TypeScript 1.6
TypeScript 1.6 supports embedding, type checking, and optionally compiling JSX ... In a class expression, the class name is optional and, if specified, ......
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