Skip to content

Presentation with magic-move: lz-string doesn't provide an export named: 'default' #2172

Open
@EduKav1813

Description

@EduKav1813

Describe the bug

I have issues when running my presentation with the magic-move feature.

Minimal reproduction

Steps to reproduce the behavior:

I am using custom theme as a submodule: https://github.com/3mdeb/slidev-template

  1. git clone https://github.com/3mdeb/slidev-template.git - clone the custom template

  2. Create the file slides.md with the following content:

         ---
        theme: ./slidev-template/theme
        layout: cover
        background: /intro.png
        class: text-center
        ---
        
        # Hello World
        
        Hello World
        
        ---
        style: |
          --slidev-code-font-size: 16px;
        ---
        
        ````md magic-move
        ```js
        console.log(`Step ${1}`)
        ```
        ```js
        console.log(`Step ${1 + 1}`)
        ```
        ```ts
        console.log(`Step ${3}` as string)
        ```
        ````
    
  3. cd slidev-template - go to the template directory

  4. npm install @slidev/cli@latest - update to latest slidev.

  5. ./scripts/local-preview.sh ../slides.md - This script creates virtual environment and installs dependencies, then starts the presentation.

  6. In the presentation, go to the next slide (with magic-move).

Expected result:
Presentation works normally, code changes via the magic-move.

Actual result:

Environment

  • Slidev version: v51.6.0 (latest)
  • Browser: Firefox
  • OS: Fedora Linux 41

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions