Skip to content

Monaco errors on initialisation #2376

@glombek

Description

@glombek

Describe the bug

Monaco is not running in v52.9.1.

The JS console provides the following error:

[Vue warn]: Unhandled error during execution of mounted hook 
  at <Monaco code-lz="MYewdgziA2CmB00QHMAUByAEraSDqIATtACboCUAUEA=" lang="ts" > 
  at <None frontmatter= 
Object { theme: "seriph", mdc: true, layout: "none" }
 > 
  at <Slides.mdslidev1> 
  at <AsyncComponentWrapper> 
  at <SlideWrapper key=1 clicks-context= 
Object { current: Getter & Setter, clicksStart: 0, relativeSizeMap: Getter, maxMap: Getter, isMounted: Getter, setup: setup(), calculateSince: calculateSince(rawAt, size), calculateRange: calculateRange(rawAt), calculate: calculate(at), register: register(el, info)
, … }
 route= 
Object { no: 1, meta: Proxy, load: async load1()
, component: {…} }
  ... > 
  at <TransitionGroup id="slideshow" tag="div" class=""  ... > 
  at <SlidesShow render-context="slide" > 
  at <SlideContainer style= 
Object { background: "var(--slidev-slide-container-background, black)" }
 is-main="" content-style= 
Object { filter: "" }
  ... > 
  at <Play onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< 
Proxy { <target>: Proxy, <handler>: {…} }
 > > 
  at <RouterView> 
  at <App>

Minimal reproduction

Steps to reproduce the behavior:

  1. Create an empty slidev project
  2. Set slides to:
---
theme: seriph
mdc: true
layout: none
---

```ts {monaco}
console.log('HelloWorld')
```
  1. Run npm run dev

Environment

  • Slidev version: 52.9.1
  • Browser: Firefox and Edge
  • OS: Windows 11

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions