vuestorefront / vue-storefront-1

The open-source frontend for any eCommerce. Built with a PWA and headless approach, using a modern JS stack. We have custom integrations with Magento, commercetools, Shopware and Shopify and total coverage is just a matter of time. The API approach also allows you to merge VSF with any third-party tool like CMS, payment gateways or analytics. Newest updates: https://blog.vuestorefront.io. Always Open Source, MIT license.
https://www.vuestorefront.io
MIT License
19 stars 13 forks source link

[Bug]: Server Crashing #475

Open kelvinkipruto opened 3 years ago

kelvinkipruto commented 3 years ago

Describe the Bug

Server crashes when you directly go to a page with checkout as a mixin

Current behavior

The server crashes when you visit any page with checkout imported as a mixin

Expected behavior

The server should not crash

Steps to reproduce

On a fresh installation of release/v1.12.3 and latest capybara

  1. Make a fresh installation with release/v1.12.3 and the latest capybara
  2. Add a new page say in pages directory, say Test, and import checkout as a mixin
  3. Add the page to the routes, with path say /test
  4. After starting server, visit http://localhost:3000/test

What version of Vue Storefront are you using?

release/v1.12.3

What version of Node.js are you using?

v14.16.0

What browser (and version) are you using?

Chrome

What operating system (and version) are you using?

Windows

Relevant log output

whole request [/test]: 1650ms
Error [ERR_STREAM_WRITE_AFTER_END]: write after end
    at writeAfterEnd (_http_outgoing.js:668:15)
    at ServerResponse.end (_http_outgoing.js:789:7)
    at D:\play\commerce\latest\frontpage\core\scripts\server.ts:244:13
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
error Command failed with exit code 1.

Able to fix / change the documentation?

Code of Conduct