Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装好后打开页面空白 #8

Closed
josephyoung opened this issue Jan 28, 2019 · 4 comments
Closed

安装好后打开页面空白 #8

josephyoung opened this issue Jan 28, 2019 · 4 comments
Labels
bug Something isn't working

Comments

@josephyoung
Copy link

我操作系统为win10
yarn版本1.13.0,运行yarn docs:dev 终端输出如下:

$ vuepress dev docs             
wait Extracting site metadata...
tip Apply plugin @vuepress/last-updated (i.e. "@vuepress/plugin-last-updated") ...                
tip Apply plugin @vuepress/register-components (i.e. "@vuepress/plugin-register-components") ...  
tip Apply plugin @vuepress/active-header-links (i.e. "@vuepress/plugin-active-header-links") ...  
tip Apply plugin @vuepress/search (i.e. "@vuepress/plugin-search") ...                            
tip Apply plugin @vuepress/nprogress (i.e. "@vuepress/plugin-nprogress") ...                      
tip Apply plugin @vuepress/google-analytics (i.e. "@vuepress/plugin-google-analytics") ...        
tip Apply plugin rss-support (i.e. "vuepress-plugin-rss-support") ...                             
                                                                                                  
Compiling                                                                                         
                                                                                                  
* Client █████████████████████████ building (67%) 700/729 modules 29 active                       
  node_modules\core-js\modules\_flags.js                                                          
 success [14:41:40] Build bfd05a finished in 9153 ms!                
> VuePress dev server listening at http://localhost:8080/zaobao/ 

chrome控制台信息:

app.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:8080/favicon.ico:1 Failed to load resource: the server responded with a status of 404 (Not Found) 
@BuptStEve
Copy link

应该是 vuepress 1.0.0-alpha.33 的问题,从 webpack-serve 换成 webpack-dev-server 的原因
vuejs/vuepress#1238

@BuptStEve
Copy link

暂时可以把 config.js 里的 base 换成 '/'

@josephyoung
Copy link
Author

暂时可以把 config.js 里的 base 换成 '/'

base值改成/后显示正常了,谢谢。

@wubaiqing wubaiqing added the bug Something isn't working label Jan 29, 2019
@wubaiqing
Copy link
Owner

🤓谢谢 @BuptStEve 提供的解决方案。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants