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
18 stars 13 forks source link

Cannot read property '__esModule' of undefined #239

Closed bloodf closed 3 years ago

bloodf commented 3 years ago

From vue-storefront created by haideritx: vuestorefront/vue-storefront#5949

Current behavior

This error only appears in production mode when using it with yarn && yarn build && yarn start

Following is the error shown on pm2 logs,

Cannot read property '__esModule' of undefined
2|server   | 2021-05-27 12:55:36: App HAVE BEEN initialized
2|server   | 2021-05-27 12:55:36: App HAVE BEEN initialized
2|server   | You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
2|server   | TypeError: Cannot read property '__esModule' of undefined
2|server   |     at Re (/home/haider/0_TM/1_vsfront/tilemoutain/vuestore/node_modules/vue/dist/vue.runtime.common.prod.js:6:24223)
2|server   |     at /home/haider/0_TM/1_vsfront/tilemoutain/vuestore/node_modules/vue/dist/vue.runtime.common.prod.js:6:21188
2|server   |     at /home/haider/0_TM/1_vsfront/tilemoutain/vuestore/node_modules/vue/dist/vue.runtime.common.prod.js:6:2394
2|server   |     at processTicksAndRejections (internal/process/task_queues.js:94:5)
2|server   | 2021-05-27 12:55:45: cache tags for the request: P5896 product C10110 C5786
2|server   | 2021-05-27 12:55:45: HTML Minifier is enabled
2|server   | 2021-05-27 12:55:46: whole request [/londres-mountain-grey-luxury-click-vinyl-flooring-4mm.html]: 9773ms

image

Expected behavior

It should not be throwing erros in pm2 logs.

image

Steps to reproduce the issue

Run the application in production mode using `yarn && yarn build && yarn start

Version of Vue Storefront

Can you handle fixing this bug by yourself?

Environment details

bloodf commented 3 years ago

Which theme? Have you applied any changes or it is a clear VSF1.12.2?