Open aligajani opened 4 years ago
https://vcalendar.io/installation.html
See steps 1 and 2A. Works fine for me on Laravel.
I get this "export 'default' (imported as 'DatePicker') was not found in 'v-calendar/lib/components/date-picker.umd'
while using 1.0.0-beta.22
NPM install (Docs: 1)
npm install v-calendar@next
main.js (plugin method) (Docs: 2A)
// V-Calendar
import VCalendar from 'v-calendar';
Vue.use(VCalendar, {
componentPrefix: 'vc',
});
app.vue
//...
<div>
<vc-date-picker
:value="null"
is-expanded
is-inline
/>
</div>
//...
I'm following this method (because I was having the same issue with importing components being reported at https://github.com/nathanreyes/v-calendar/issues/502) and still getting errors
Solutions used by myself
npm remove v-calender
npm i v-calendar@1.0.0-beta.22
and then, it work
Using following webpack.js I get the below warning:
Only happens when I have this included:
PS: I am using
laravel-mix-polyfill
version ^2.0.0