alexanderdavide / slidev-theme-academic

Academic presentations with Slidev made simple 🎓
https://slidev-theme-academic.alexeble.de
MIT License
109 stars 30 forks source link

$setup.$slidev is undefined #4

Closed klieret closed 2 years ago

klieret commented 2 years ago

Thanks a lot for creating this beautiful theme!

Unfortunately I am unable to use it.

I've created a small repository to demonstrate the issue: https://github.com/klieret/slidev-academic-bug-demo

The file console_export.txt contains the output of the firefox console.

But basically I do

npm init slidev@latest
# remove most of the slides.md and update the theme to use yours
npx slidev
# install theme

And nothing shows up at all.

Browser is firefox, on a M1 Mac, slidev version 0.35.2

alexanderdavide commented 2 years ago

Thank you very much for reporting the issue. This really helps me to keep the theme alive and functioning.

I was able to reproduce this using any version of the latest minor release of Slidev being v0.35.*. The problem stems from Slidev internals. Recently, there has been opened an issue, slidevjs/slidev#672, that targets the root cause of the error you're experiencing.

For the time being, you can pin Slidev to < v0.35. I've tried v0.34.3 successfully. I'll investigate if this will be fixed by Slidev or if I need to adapt something on my end to stay compatible.

I'm happy you like the theme and hope you can enjoy it further!

klieret commented 2 years ago

Thanks a lot! Let me try this :)

alexanderdavide commented 2 years ago

Closing as the issue is with Slidev and is going to be fixed in upcoming releases.