Vue-datepicker-next version: vue-datepicker-next
Vue version: v3
Browser: Google Chrome / Version 105.0.5195.127
It is possible to import vue-datepicker-next via VITE?
I used npm install vue-datepicker-next --save, then I imported in vite.config.js like import DatePicker from 'vue2-datepicker'; but is not working. Is there any other way of doing it?
vite.config.js
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import moment from 'moment';
import DatePicker from "vue2-datepicker";
export default defineConfig({
plugins: [
laravel([
'resources/css/appErp.css',
'resources/css/appSite.css',
'resources/js/appErp.js',
'resources/js/appSite.js',
]),
],
});
Vue-datepicker-next version: vue-datepicker-next Vue version: v3 Browser: Google Chrome / Version 105.0.5195.127
It is possible to import vue-datepicker-next via VITE? I used npm install vue-datepicker-next --save, then I imported in vite.config.js like import DatePicker from 'vue2-datepicker'; but is not working. Is there any other way of doing it?
vite.config.js
package.json
in myfile.blade.php
<date-picker valueType="format"></date-picker>
After running npm run build, everything is ok, I have no errors.
Desktop: OS: Windows 10 Browser: Chrome Version 103.0.5060.134 Version Laravel: 9.19 Version moment: 2.29.4