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
.
2
Answers
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 theprerender-spa-plugin
page stating that it's an updated version.Everything works fine now.
Run the prerender using
npm run prerender
. Then you can see files generated in./dist
.