Closed archer3cl closed 7 years ago
Are you sure you have jQuery installed ?
Tip When you specify -
Vue.use(datePicker);
It means you are registering a global component, so you no need to specify local component.
I have setup a jsfiddle demo for you - https://jsfiddle.net/ankurk91/zupazg2u/4/
You can also take a look at examples and my webpack.config Possibly it webpack configuration issue.
Screenshot was not sufficient, can you please share a sample repo or setup a webpackbin?
After testing at webpackbin i can implement your plugin without trouble. Maybe is as you say a webpack configuration issue
May be this can fix this -> https://github.com/ankurk91/vue-bootstrap-datetimepicker/blob/master/webpack.config.dev.js#L71-L75 Feel free to re-open :smile:
Hi @ankurk91 it not work for me also it show me some error like this " Uncaught ReferenceError: datePicker is not defined".
i'm already import all this in my app.js import datePicker from 'vue-bootstrap-datetimepicker'; import 'bootstrap/dist/css/bootstrap.css'; import 'eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.css'; Vue.use(datePicker);
@TholthoeunChansovann Have you configured webpack ?
@ankurk91 yes already i configured on webpage.mix.js
Thats strange, it would be helpful if you can share a minimal reproduction of the issue on a github repo.
i try use all this code on app.js import datePicker from 'vue-bootstrap-datetimepicker'; import 'bootstrap/dist/css/bootstrap.css'; import 'eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.css'; Vue.use(datePicker);
and use this code at other components
Sorry, This wont help.
@ankurk91 Thank for help now it work.
I'm submitting a ... (check one with "x")
Tell about your platform
Current behavior Plugin is not working on module environment, console shows Error "t.datetimepicker is not a function"
Expected behavior Plugin should show on module environment
Minimal reproduction of the problem with instructions Clean installation in webpack module.
error in console