Skip to content

globally installed 0.48.8 seems breaking mermaid #1479

@fjun99

Description

@fjun99

local install is correct.

Describe the bug
Mermaid error when slidev is globally installed.

page displays: An error occurred on this slide. Check the terminal for more information.

console error :

slides:294 Failed to load slide 17: SyntaxError: The requested module '/@fs/usr/local/lib/node_modules/@slidev/cli/node_modules/lz-string/libs/lz-string.js?v=d46b41fe' does not provide an export named 'default' (at mermaid.ts?v=d46b41fe:2:8)


  • OS: macOS
  • Browser: chrome
  • Slidev version: 0.48.8

I uninstall completely and reinstall again, and the issue remains there.

by the way, there are many warning and failing warning in current version when globally installed, how to fix this?

Failed to resolve dependency: @slidev/cli > @slidev/client > @antfu/utils, present in 'optimizeDeps.include'
Failed to resolve dependency: @slidev/cli > @slidev/client > @iconify-json/carbon, present in 'optimizeDeps.include'
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions