iNeoO / vue-meeting-selector

This component is inspired from the meeting selector from doctolib with the power of Vuejs components.
https://vue-meeting-selector.tuturu.io
96 stars 19 forks source link

Missing imports with fresh install #38

Closed Julien-degardin closed 1 year ago

Julien-degardin commented 1 year ago

Hi !

First, I want to thank you for coding such a package. It looks great! However, I couldn't get it to work for the moment. I'm running a Vue 3 project in which I want to add a timeslot reservation system. I followed the instructions given on your website (npm install + import), and tried to implement your example (https://vue-meeting-selector.tuturu.io/#simpleexample). But when I refresh, I get image

Did I do something wrong?

Thanks a lot!

iNeoO commented 1 year ago

Hi, i missed some files into the publish with npm, it s should be fixed with 3.0.2

https://codesandbox.io/s/vue3-meeting-selector-hiloic?file=/src/App.vue

I made a simple exemple with codesandbox

Julien-degardin commented 1 year ago

Hello ! Thank you very much for this quick reply :) I uninstalled and reinstalled your package in its latest version (3.0.2) but I'm now getting this error : image

I noticed your demo on codesandbox is working so do you have any idea what could be causing it?

Thanks!

iNeoO commented 1 year ago

can you check the node_modules package to see if files are present ?

Julien-degardin commented 1 year ago

It seems they are there, here is my tree : image

iNeoO commented 1 year ago

well i don't know, i had some probleme with cache on the codesandbox, but nothing more. Do you really need a lib to generate meeting slots ? If you have an api to generate availables slot use it instead of slotsGenerator other way you can copy the file.

Julien-degardin commented 1 year ago

I made it work ! I copied the file slotsGenerator.js and pasted it in my components folder and then imported it with import SlotsGenerator from "@/components/slotsGenerator/slotsGenerator";

image Thank you for your advices !