Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

globally installed 0.48.8 seems breaking mermaid #1479

Closed
fjun99 opened this issue Mar 29, 2024 · 2 comments · Fixed by #1559
Closed

globally installed 0.48.8 seems breaking mermaid #1479

fjun99 opened this issue Mar 29, 2024 · 2 comments · Fixed by #1559
Labels
bug Something isn't working duplicate This issue or pull request already exists global installation

Comments

@fjun99
Copy link

fjun99 commented Mar 29, 2024

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'
...

@KermanX
Copy link
Member

KermanX commented Apr 1, 2024

There seem to be many bugs when using Slidev via global installation. Hopefully, we can fix these in the future, but currently we can use the local installation as a workaround.

Also, this issue is duplicated with #1409.

@KermanX KermanX added bug Something isn't working duplicate This issue or pull request already exists labels Apr 1, 2024
@fjun99
Copy link
Author

fjun99 commented Apr 1, 2024

There seem to be many bugs when using Slidev via global installation. Hopefully, we can fix these in the future, but currently we can use the local installation as a workaround.

Also, this issue is duplicated with #1409.

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists global installation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants