vuese / vuese

🤗 One-stop solution for vue component documentation. Original org: https://github.com/vuese
https://vuese.github.io/website/
MIT License
1.69k stars 120 forks source link

cli(preview): cannot `hot-reload` #67

Open 2nthony opened 5 years ago

2nthony commented 5 years ago

Describe the bug

Cannot "hot-reload"

Uncaught (in promise) TypeError: event.on is not a function
    at main (index.html:20)

To Reproduce

  1. vuese preview path-to-component.vue

Expected behavior

"hot-reload" works.

Which version do you use: cli:v2.3.0 cli:v2.3.1

Additional information

Maybe can refer koy/bin/index.js#L41, but it seems like need to declare or ts-ignore window without including lib.dom.d.ts 🤔

morganzysman commented 4 years ago

Is it possible to have the doc regenerated on every changed made while the "vuese serve --open" is executed ?