mengxiong10 / vue2-datepicker

A datepicker / datetimepicker component for Vue2
https://mengxiong10.github.io/vue2-datepicker/index.html
MIT License
1.52k stars 406 forks source link

Error: Couldn't find preset "latest" #2

Closed blackpuppy closed 7 years ago

blackpuppy commented 7 years ago

Thanks for creating the component!

I am using it with Vue.js 2 and got the following error:

...
 error  in ./~/vue2-datepicker/src/datepicker/index.vue

Module build failed: Error: Couldn't find preset "latest" relative to directory ".../node_modules/vue2-datepicker"
...

Bug reproduction can be found here. I am using Node v6.10.1, and npm 4.2.0.

mengxiong10 commented 7 years ago

@blackpuppy Thank you for your feedback, I have fixed it. You can delete the file "/node_modules/vue2-datepicker/.babelrc" or run the npm again

npm install vue2-datepicker --save
blackpuppy commented 7 years ago

@mengxiong10 I got the update and verified the fix. Thanks!