Vuepress: t._ssrNode is not a function

Created on 24 May 2018  路  11Comments  路  Source: vuejs/vuepress

Bug report

Although vuepress is working properly while serving the DEV site (vuepress dev docs) on my local computer, I am finding that when deployed to netlify the same code results in some navigation bugs. Upon inspecting the console I find the error: TypeError: e._ssrNode is not a function multiple times. I have verified this on multiple computers.

Version

Latest version ^0.9.0

Steps to reproduce

  1. Go to: https://smokescreen-docs.netlify.com/guide
  2. Navigate between the sidebar topics.
  3. Some pages will occasionally be blank and the console output will contain TypeError: e._ssrNode is not a function

What is expected?

Expect navigation to work the same as it does while serving in dev.

What is actually happening?

When clicking on the sidebar links, some of the pages are blank, and there are errors in the console about TypeError: e._ssrNode is not a function

Other relevant information

  • Your OS: MacOS (local) / Netlify
  • Node.js version: 9.11 (local) / unsure on netlify
  • Browser version: Chrome 66.0
  • Is this a global or local install?
  • Which package manager did you use for the install? yarn (local)
bug

Most helpful comment

This should have been fixed in 0.9.1. After upgrading, also delete node_modules/.cache before rebuilding.

All 11 comments

Could you also provide your reproduction repository?

Hi,

Production repo: https://github.com/rexlabsio/smokescreen-docs

  • Everything lives under the docs/ directory (aside from package.json)
  • I have ejected the theme to modify a couple of CSS variables into docs/.vuepress/

Hi,
I had the same problem,
Production Website: https://wenkers.github.io/OurBook/
Code Source: https://github.com/weNKers/OurBook

The development environment is correct, but the production environment throws the same error as TypeError: e._ssrNode is not a function

Thanks.

the same problem

the same problem +1锛宎nd it causes the search not to work

I had the same problem and tried rm -rf node_modules/vuepress/node_modules/.cache
it went well.

@jodiedunlop Hmmm, you just gave me a repo that returns 404...

I reproduced it. and fixed it by disabling the cache-loader.

@yyx990803 Would you help to take a look at it?

There are the reproduction links:

This should have been fixed in 0.9.1. After upgrading, also delete node_modules/.cache before rebuilding.

Thanks @yyx990803

Thanks a lot!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alinnert picture alinnert  路  3Comments

AleksejDix picture AleksejDix  路  3Comments

sankincn picture sankincn  路  3Comments

tinchox5 picture tinchox5  路  3Comments

genedronek picture genedronek  路  3Comments