Vuepress: Cannot read property 'algolia' of undefined

Created on 23 Apr 2018  路  3Comments  路  Source: vuejs/vuepress

Environment

$ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.13.4
BuildVersion:   17E199
$ node -v
v8.10.0
$ vuepress -V
0.8.0

Issue

Just installed with yarn global add vuepress and followed the Getting Started instructions. When running vuepress dev or vuepress build the following error is thrown:

Extracting site metadata...TypeError: Cannot read property 'algolia' of undefined
    at resolveOptions (/Users/mbischoff/.config/yarn/global/node_modules/vuepress/lib/prepare.js:124:28)
    at prepare (/Users/mbischoff/.config/yarn/global/node_modules/vuepress/lib/prepare.js:24:25)
    at dev (/Users/mbischoff/.config/yarn/global/node_modules/vuepress/lib/dev.js:21:25)
    at args (/Users/mbischoff/.config/yarn/global/node_modules/vuepress/bin/vuepress.js:104:12)
    at Command.program.command.description.option.option.action (/Users/mbischoff/.config/yarn/global/node_modules/vuepress/bin/vuepress.js:31:21)
    at Command.listener (/Users/mbischoff/.config/yarn/global/node_modules/commander/index.js:315:8)
    at emitTwo (events.js:126:13)
    at Command.emit (events.js:214:7)
    at Command.parseArgs (/Users/mbischoff/.config/yarn/global/node_modules/commander/index.js:651:12)
    at Command.parse (/Users/mbischoff/.config/yarn/global/node_modules/commander/index.js:474:21)

Most helpful comment

Fixed in 0.8.1

All 3 comments

I got the same, Windows 10, both PowerShell and from WSL (Ubuntu Bash). Rolling back to version 0.7.1 instead of the freshly released 0.8.0 works for me.

Fixed in 0.8.1

Wow, that was quick! :) I can confirm this is now working for me. Thanks!

Was this page helpful?
0 / 5 - 0 ratings