Closed OctaneInteractive closed 6 years ago
What does webpack.config.dev.js
do with Laravel Mix ?
I don't understand the question.
In the webpack.mix.js
file, I have:
mix.autoload({
'jquery': ['$', 'window.jQuery', 'jQuery'],
'vue': ['Vue','window.Vue'],
'moment': ['moment','window.moment']
})...
... with additional parameters that were there before I attempted installing the date picker code.
My question was straight forward.
There is no need to create webpack.config.dev.js
when you are using laravel mix.
Why you have specified this in your question.
In the instructions, you ask if I'm using Laravel Mix, which I am, so I used that code.
Also, I get the same errors whether I use the code in the Webpack file or use the webpack.config.dev.js
file or not.
If you know webpack then you can clone this repo and see how my examples are working.
I'm not familiar with the inner workings of Laravel or Webpack, so this has been a process of trial and error.
I've removed the webpack.config.dev.js
file, moved the import code into the app.js
file, and removed the links to jQuery from within the blade file, which got something working, although the pop-up isn't getting populated with the actual date picker itself.
Glad you was made it. Try loading the component without bootstrap modal.
Make sure it is working fine outside of modal. Try to isolate the issue by removing any 3rd party css code.
I am sure some css code is causing the datepicker not to show property. I never faced any issues using this component inside popups or modal.
I tried it outside the modal and it's still not working.
I'm using the format: "YYYY-MM-DD" and wondering if that's something to do with it?
Do you see any errors in console?
No errors.
I found a reference to Bootstrap for X-Editable which was interfering with your own reference.
I've removed that and the date picker is working.
Thanks for the assistance!
I'm submitting a ... (check one with "x")
Tell about your platform
Current behavior
At the moment, we have single text field, and I'm attempting to turn it into a date picker element.
I followed the installation instructions, added the code to the
webpack.mix.js
file, created awebpack.config.dev.js
file using the the source from the file of the same name, and in the component in Vue:However, I'm getting a warning:
... and an error:
Expected behavior I would expect there to be a date picker to use.
Minimal reproduction of the problem with instructions Since this is an entire application, it's not feasible to create a minimal working version; it would take at least a day to do.
However, I would be willing to grant the author access to the repo on Git, if need be.