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

t._ssrNode is not a function #492

Closed
jodiedunlop opened this issue May 24, 2018 · 11 comments
Closed

t._ssrNode is not a function #492

jodiedunlop opened this issue May 24, 2018 · 11 comments
Assignees
Labels
type: bug Something isn't working

Comments

@jodiedunlop
Copy link

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)
@ulivz
Copy link
Member

ulivz commented May 24, 2018

Could you also provide your reproduction repository?

@jodiedunlop
Copy link
Author

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/

@Liyuk
Copy link
Contributor

Liyuk commented May 25, 2018

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.

@yiiqii
Copy link

yiiqii commented May 25, 2018

the same problem

@komomoo
Copy link

komomoo commented May 25, 2018

the same problem +1,and it causes the search not to work

@noliaki
Copy link

noliaki commented May 25, 2018

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

@ulivz ulivz added type: bug Something isn't working and removed no reproduction repo labels May 25, 2018
@ulivz
Copy link
Member

ulivz commented May 25, 2018

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

@ulivz
Copy link
Member

ulivz commented May 25, 2018

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:

@ulivz ulivz changed the title SSR error causing blank pages / bad navigation t._ssrNode is not a function May 25, 2018
@yyx990803
Copy link
Member

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

@ulivz
Copy link
Member

ulivz commented May 25, 2018

Thanks @yyx990803

@higuoxing
Copy link

Thanks a lot!

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

8 participants