Closed dartcafe closed 6 years ago
Hey :)
You need to use import {DatePicker} from 'nextcloud-vue'
.
Otherwise you're importing the whole package into the DatePicker variable ;)
@dartcafe did it work? :)
@skjnldsv Umpf. no. When I change the line to import {DatePicker} from 'nextcloud-vue'
, I get the compiling error "export 'DatePicker' was not found in 'nextcloud-vue'
@dartcafe ouuups, it's DatetimePicker
:see_no_evil:
https://github.com/nextcloud/vue-components/blob/8ef09ab40d65b6d0b7069b793746fd3554afa8ed/src/components/index.js#L25
OMG. :sunglasses:
Am I doing something wrong? When using the nc-datepicker I get a warning inside of the browser's console.
[Vue warn]: Error in render: "TypeError: Vue.use is not a function"
When I change from
import DatePicker from 'nextcloud-vue'
toimport DatePicker from 'vue2-datepicker'
the datepicker works great.My main.js:
My Create.vue