Vuepress: Site config base will always get / (bug in v1.0.0-alpha.46)

Created on 1 Apr 2019  路  4Comments  路  Source: vuejs/vuepress

// routerBase will always get '/'

  • version: v1.0.0-alpha.44 is correct
  • version: v1.0.0-alpha.46 is wrong
// @vuepress/core/lib/client/app.js
export function createApp (isServer) {
  const routerBase = typeof window !== 'undefined'
    ? window.__VUEPRESS_ROUTER_BASE__
    : (siteData.routerBase || siteData.base)

  const router = new Router({
    base: routerBase,

Most helpful comment

For anyone else who wants to fix this locally: you need to downgrade vuepress and core:

npm i [email protected] @vuepress/[email protected]

All 4 comments

With version v1.0.0-alpha.44 I was using base in my config which was working fine.
Now in version v1.0.0-alpha.46 it doesn't work anymore, I get a 404 if I want to access the url which is specified via base. But the page works if I manually open /.

For anyone else who wants to fix this locally: you need to downgrade vuepress and core:

npm i [email protected] @vuepress/[email protected]

@timaschew thanks!

@ulivz

Can you look into this regression?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alinnert picture alinnert  路  3Comments

tinchox5 picture tinchox5  路  3Comments

kid1412621 picture kid1412621  路  3Comments

sankincn picture sankincn  路  3Comments

shaodahong picture shaodahong  路  3Comments