zhangyanling77 / zyl-docs

基于vue的UI组件库zyl-ui组件文档
4 stars 4 forks source link

文档无法生成html #9

Open zhangyf02 opened 3 years ago

zhangyf02 commented 3 years ago

wait Rendering static HTML... error Error rendering /: false undefined error Error rendering /components/button.html: false undefined error Error rendering /components/carousel.html: false undefined error Error rendering /components/container.html: false undefined error Error rendering /components/date-picker.html: false undefined error Error rendering /components/icon.html: false undefined error Error rendering /components/infinite-scroll.html: false undefined error Error rendering /components/input.html: false undefined error Error rendering /components/layout.html: false undefined error Error rendering /components/pagination.html: false undefined error Error rendering /components/popover.html: false undefined error Error rendering /components/progress.html: false undefined error Error rendering /components/table.html: false undefined error Error rendering /components/upload.html: false undefined error Error rendering /404.html: false undefined ReferenceError: window is not defined at Object.ceb (zyl-ui/src/styles/icon.js:1:35791) at n (zyl-ui/webpack/bootstrap:19:21) at Module.fb15 (server-bundle.js:61124:16) at n (zyl-ui/webpack/bootstrap:19:21) at 00ee (zyl-ui/webpack/bootstrap:83:9) at server-bundle.js:55311:4 at server-bundle.js:55259:130 at Object. (zyl-ui/webpack/universalModuleDefinition:10:20) at Object. (server-bundle.js:63035:30) at webpack_require (webpack/bootstrap:25:0) at Module. (server-bundle.js:107748:22) at webpack_require (webpack/bootstrap:25:0) at Object. (server-bundle.js:63486:18) at __webpack_require__ (webpack/bootstrap:25:0) at server-bundle.js:118:18 at Object. (server-bundle.js:121:10)

zhangyanling77 commented 3 years ago

这个问题主要是vuepress ssr的时候node环境读不到window对象引起的 解决如下: https://github.com/zhangyanling77/zyl-ui/commit/d06e52d3bfe32573473be438cc35e906ee201ac5

zhangyf02 commented 3 years ago

谢谢作者,给你发完消息后,我也自行解决掉了问题 百忙之中 还能进行解决 万分感谢

------------------ 原始邮件 ------------------ 发件人: "zhangyanling77/zyl-docs" <notifications@github.com>; 发送时间: 2021年1月15日(星期五) 下午4:28 收件人: "zhangyanling77/zyl-docs"<zyl-docs@noreply.github.com>; 抄送: "旺:张余烽"<306206452@qq.com>;"Author"<author@noreply.github.com>; 主题: Re: [zhangyanling77/zyl-docs] 文档无法生成html (#9)

这个问题主要是vuepress ssr的时候node环境读不到window对象引起的 解决如下: zhangyanling77/zyl-ui@d06e52d

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.