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

TypeError: Cannot read property '/' of undefined #125

Closed
sulian opened this issue Apr 18, 2018 · 1 comment
Closed

TypeError: Cannot read property '/' of undefined #125

sulian opened this issue Apr 18, 2018 · 1 comment
Labels
type: bug Something isn't working

Comments

@sulian
Copy link

sulian commented Apr 18, 2018

Hello

I have this error during the build of my project :

Error rendering /:
TypeError: Cannot read property '/' of undefined
    at VueComponent.userNav (server-bundle.js:1912:40)
    at VueComponent.nav (server-bundle.js:1941:19)
    at VueComponent.userLinks (server-bundle.js:1944:20)
    at VueComponent.NavLinksvue_type_template_id_ed82cf72_render (server-bundle.js:1758:140)
    at VueComponent.Vue._render (/Users/informatique/Documents/vuepress/node_modules/vue/dist/vue.runtime.common.js:4542:22)
    at renderComponentInner (/Users/informatique/Documents/vuepress/node_modules/vue-server-renderer/build.js:7521:25)
    at renderComponent (/Users/informatique/Documents/vuepress/node_modules/vue-server-renderer/build.js:7491:5)
    at RenderContext.renderNode (/Users/informatique/Documents/vuepress/node_modules/vue-server-renderer/build.js:7407:5)
    at RenderContext.next (/Users/informatique/Documents/vuepress/node_modules/vue-server-renderer/build.js:2428:14)
    at cachedWrite (/Users/informatique/Documents/vuepress/node_modules/vue-server-renderer/build.js:2287:9)
    at renderElement (/Users/informatique/Documents/vuepress/node_modules/vue-server-renderer/build.js:7645:5)
    at renderNode (/Users/informatique/Documents/vuepress/node_modules/vue-server-renderer/build.js:7409:5)
    at renderComponentInner (/Users/informatique/Documents/vuepress/node_modules/vue-server-renderer/build.js:7527:3)
    at renderComponent (/Users/informatique/Documents/vuepress/node_modules/vue-server-renderer/build.js:7491:5)
    at RenderContext.renderNode (/Users/informatique/Documents/vuepress/node_modules/vue-server-renderer/build.js:7407:5)
    at RenderContext.next (/Users/informatique/Documents/vuepress/node_modules/vue-server-renderer/build.js:2428:14)

My "project" consist only to follow the "Getting started" chapter.

My config :

  • MacOS 10.11
  • VSCode 1.22.2
  • Brew 1.6.1
  • Node 8.11.1
  • Yarn 1.6.0
  • VuePress 0.60

Starting a new project, use Yarn (yarn add -D vuepress) instead of npm (with whom I had the same results/problems).

@Princess310
Copy link

Steps:

  1. Create a folder and add README.md with content "# Hello"
  2. Run "vuepress build ." command.

Still have building error:

Rendering page: /Error rendering /:
TypeError: Cannot read property '/' of undefined
    at VueComponent.userNav (server-bundle.js:1911:40)
    at VueComponent.nav (server-bundle.js:1940:19)
    at VueComponent.userLinks (server-bundle.js:1943:20)
    at VueComponent.NavLinksvue_type_template_id_0a520b9a_render (server-bundle.js:1757:140)
    at VueComponent.Vue._render (C:\Users\Jason\AppData\Roaming\npm\node_modules\vuepress\node_modules\vue\dist\vue.runtime.common.js:4542:22)
    at renderComponentInner (C:\Users\Jason\AppData\Roaming\npm\node_modules\vuepress\node_modules\vue-server-renderer\build.js:7521:25)
    at renderComponent (C:\Users\Jason\AppData\Roaming\npm\node_modules\vuepress\node_modules\vue-server-renderer\build.js:7491:5)
    at RenderContext.renderNode (C:\Users\Jason\AppData\Roaming\npm\node_modules\vuepress\node_modules\vue-server-renderer\build.js:7407:5)
    at RenderContext.next (C:\Users\Jason\AppData\Roaming\npm\node_modules\vuepress\node_modules\vue-server-renderer\build.js:2428:14)
    at cachedWrite (C:\Users\Jason\AppData\Roaming\npm\node_modules\vuepress\node_modules\vue-server-renderer\build.js:2287:9)
    at renderElement (C:\Users\Jason\AppData\Roaming\npm\node_modules\vuepress\node_modules\vue-server-renderer\build.js:7645:5)
    at renderNode (C:\Users\Jason\AppData\Roaming\npm\node_modules\vuepress\node_modules\vue-server-renderer\build.js:7409:5)
    at renderComponentInner (C:\Users\Jason\AppData\Roaming\npm\node_modules\vuepress\node_modules\vue-server-renderer\build.js:7527:3)
    at renderComponent (C:\Users\Jason\AppData\Roaming\npm\node_modules\vuepress\node_modules\vue-server-renderer\build.js:7491:5)

Node 8.11.1
npm 5.6.0
windows 10 64位
VuePress 0.8.4

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

No branches or pull requests

3 participants