0
votes

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

2 Answers

0
votes

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

0
votes

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.