Skip to content

Commit c7d1965

Browse files
committed
add description of bug in README
1 parent 248778d commit c7d1965

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

README.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# vue2-datepicker-demo
22

3-
> A Vue.js project
3+
> A vue2-datepicker demo to reproduce a bug.
44
55
## Build Setup
66

@@ -19,3 +19,30 @@ npm run build --report
1919
```
2020

2121
For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
22+
23+
## How to reproduce
24+
25+
``` bash
26+
# create an empty Vue project
27+
vue init webpack vue2-datepicker-demo
28+
29+
# install dependencies
30+
cd vue2-datepicker-demo/
31+
npm install
32+
33+
# add vue2-datepicker
34+
npm install vue2-datepicker --save
35+
36+
# serve with hot reload at localhost:8080
37+
npm run dev
38+
```
39+
40+
Error in the output:
41+
42+
```
43+
...
44+
error in ./~/vue2-datepicker/src/datepicker/index.vue
45+
46+
Module build failed: Error: Couldn't find preset "latest" relative to directory ".../node_modules/vue2-datepicker"
47+
...
48+
```

0 commit comments

Comments
 (0)