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

not working with prerender-spa-plugin #8

Closed
xpepermint opened this issue Oct 11, 2016 · 1 comment
Closed

not working with prerender-spa-plugin #8

xpepermint opened this issue Oct 11, 2016 · 1 comment

Comments

@xpepermint
Copy link

I'm not sure who's the guilty one :), but here's the thing. I created a fresh vue application using the vue-cli (vue init webpack {projectname}). Then I installed the vue-router and finally the [vue-apollo] package with [apollo-client].

Everything seams to be working, but when I try to prerender my project using the prerender-spa-plugin I see errors inside compiled files. At first I thought that pre-renderer has problems with async operations, but it turned out that it works without problems. Only the apollo part is not working.

This is the error that I see:

TypeError: undefined is not an object (evaluating 'r._updateFromParent')

  http://localhost:8000/static/js/vendor.0c3c80024a3bb7c58eec.js:12 in st
  http://localhost:8000/static/js/vendor.0c3c80024a3bb7c58eec.js:13 in y
  http://localhost:8000/static/js/vendor.0c3c80024a3bb7c58eec.js:13 in v
  http://localhost:8000/static/js/vendor.0c3c80024a3bb7c58eec.js:13 in y
  http://localhost:8000/static/js/vendor.0c3c80024a3bb7c58eec.js:13
  http://localhost:8000/static/js/vendor.0c3c80024a3bb7c58eec.js:12 in _update
  http://localhost:8000/static/js/vendor.0c3c80024a3bb7c58eec.js:12
  http://localhost:8000/static/js/vendor.0c3c80024a3bb7c58eec.js:13 in get
  http://localhost:8000/static/js/vendor.0c3c80024a3bb7c58eec.js:13 in run
  http://localhost:8000/static/js/vendor.0c3c80024a3bb7c58eec.js:12 in T
  http://localhost:8000/static/js/vendor.0c3c80024a3bb7c58eec.js:13 in t

Here is also a repository with my code. Just run npm run build, then check the ./dist/index.html file.

@xpepermint
Copy link
Author

prerender-spa-plugin is to blame because of its outdated browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant