
具体报错是
(node:44617) UnhandledPromiseRejectionWarning: TypeError: res.getHeader is not a function 搜索了一些方法,尝试了
npm install [email protected] 以及
{ "scripts": { "docs:dev": "vuepress dev docs", "docs:build": "vuepress build docs" }, "devDependencies": { "vuepress": "^0.14.10", "webpack-dev-middleware": "3.6.0" } } 然后 vuepress dev docs 都仍然报错
1 clchenliang 2019 年 3 月 29 日 同出错。 更换了 vuepress 版本,node 版本都未生效 |
2 xiaohantx OP @clchenliang 更换最新版本后,问题已经解决 |
3 clchenliang 2019 年 3 月 29 日 我这边是因为 webpack-dev-middleware 的版本问题。3.6.x 的有这个问题。恢复成 3.4.x 的就可以了。 你说的更新最新版本是指哪个? vuepress 吗 |
4 xiaohantx OP @clchenliang #3 对,别的没动,采用了 1.x 的 vuepress 就没问题了 |