SolarLiner / vue-cli-plugin-prerender-spa

Boost SEO by prerendering your Vue application. Powered by prerender-spa-plugin.
https://www.npmjs.com/package/vue-cli-plugin-prerender-spa
MIT License
174 stars 25 forks source link

e2e tests fail with latest vue-cli + vue-prerender-spa-plugin #86

Open Uninen opened 4 years ago

Uninen commented 4 years ago

Describe the bug

End to end tests with Cypress fail when installing this plugin to a fresh project created by vue-cli (using router in history mode and Cypress for tests).

To Reproduce Steps to reproduce the behavior:

  1. Create new project, select router, (I also usex vuex) and e2e tests with Cypress. (Run yarn test:e2e -- it works)
  2. Add the plugin vue add prerender-spa
  3. Run yarn test:e2e -- tests fail to start (Error: ENOENT: no such file or directory, stat '/Users/uninen/LocalDocuments/Projects/TestProjects/vueclie2etest/dist/app.html')
  4. Run yarn build, then run tests again with yarn test:e2e. Now Cypress starts but the tests fail as the server only show s blank page.

I also recreated the issue with a new blank project, the issue was identical. If I disable the plugin, tests start to work again.

Expected behavior Tests should work after installing the plugin.

Additional context Package version: 3.2.1 Vue version: 2.6.11 Vue CLI version: 4.2.2 @vue/cli-plugin-e2e-cypress: 4.2.0

yerzhant commented 4 years ago

I have the same issue.