Closed Bighamster closed 4 years ago
Did you install the node module?
Did you install the node module?
No. Everything was working fine before installing 0.28
I even tried the default app (npx degit "sveltejs/sapper-template#rollup" my-app) ... without success.
Temporaraly I use the component this way:
import Datepicker from 'svelte-calendar/src/Components/Datepicker.svelte'
I've just tried exactly what you suggested:
npx degit "sveltejs/sapper-template#rollup" my-app
then installed the node module and added it to the page. it works fine.
It sounds like whatever project you're trying to use it on isn't looking at the svelte
field in package.json
which is the misconfiguration mentioned here - https://github.com/6eDesign/svelte-calendar/issues/85
However, the base Sapper 0.28 template does have this configuration, and it works as expected.
Oh! I found out what the problem was ... I've installed into dependencies instead of devDependencies ... Shame on me!
Thanks a lot!
https://github.com/6eDesign/svelte-calendar/pull/95
i have created a small PR to fix the missing part in document. i know it might be very simple and not that important but i think it's missing in documentation. i personally spend few hours on it until i found the solution here.
npx degit "sveltejs/sapper-template#rollup" my-app
index.svelte:
output: