Closed TechWatching closed 2 years ago
Embedding an iframe with the polling service you prefer would be the best way to match preference and be independent IMO
Hello @TechWatching , I created a little library for creating polls inside slidev: https://github.com/Smile-SA/slidev-component-poll Maybe you can be interested.
Hello @TechWatching , I created a little library for creating polls inside slidev: https://github.com/Smile-SA/slidev-component-poll Maybe you can be interested.
It seems really cool. But I have not been able to make it work:
Error: Build failed with 5 errors:
node_modules/slidev-component-poll/dist/poll.mjs:2:47: ERROR: Could not read from file: /@fs/home/projects/slidev-b5halc/node_modules/@slidev/client/logic/nav
node_modules/slidev-component-poll/dist/poll.mjs:3:20: ERROR: Could not resolve "../../../../../../@slidev/configs"
Thank you for your quick test. I fixed some issues related to these errors, but there is still some of them. I don't get those errors because it works well when you import the components locally but not when you import them from a released package. Need to figure why...
A quick and dirty workaround is to install the components locally on your project (and using latest version 0.1.2):
mkdir components
cd components
ln -s ../node_modules/slidev-component-poll/src/* .
Also I updated the README because you also need to create a vite.config.ts
file with the given configuration.
Hello @TechWatching , with the last 0.32.1 version and the new addon API it should now be fine. For the poll, it is still in early stage of development but it is functional.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Describe the solution you'd like DeckDeckGo has an interesting feature which is the ability to add polls to a slide with a place where people could vote. I don't know if it could be something possible with slidev but it seems very interesting.