skip to Main Content

Hi I installed Vue with the Webpack vue-cli.

I then followed this tutorial for prerendering the html:

https://symmetrycode.com/better-vue-seo-with-prerender-spa-plugin-and-vue-cli/

I’m certain everything should be working fine, it runs the npm run build first… but when I open the html file in the ./dist folder the only thing in there is the word undefined.

enter image description here

2

Answers


  1. Chosen as BEST ANSWER

    I think this may have just been an outdated version of the prerender-spa-plugin or one of it's dependencies. I see new documentation on the prerender-spa-plugin page stating that it's an updated version.

    Everything works fine now.


  2. Run the prerender using npm run prerender. Then you can see files generated in ./dist.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search