Symptom
JS storefront and SSR are up, but when access the JS storefront, get the NGINX error. "ReferenceError: window is not defined" can be found in the logs from SSR server.
| 2021-06-11T13:41:44: PM2 log: App [storefront:0] starting in -fork mode- 2021-06-11T13:41:44: PM2 log: App [storefront:0] online ReferenceError: window is not defined at Object.yLV6 (/opt/app/storefront/dist/server.js:1:9480239) at __webpack_require__ (/opt/app/storefront/dist/server.js:1:317) at Module.uj+Y (/opt/app/storefront/dist/server.js:1:6973540) at __webpack_require__ (/opt/app/storefront/dist/server.js:1:317) at Object.0 (/opt/app/storefront/dist/server.js:1:50624) at __webpack_require__ (/opt/app/storefront/dist/server.js:1:317) at +dTB (/opt/app/storefront/dist/server.js:1:2205) at Object.<anonymous> (/opt/app/storefront/dist/server.js:1:2250) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) |
Read more...
Environment
- SAP Commerce Cloud
- SAP Commerce Cloud, composable storefront
Product
SAP Commerce Cloud all versions ; SAP Commerce Cloud, composable storefront all versions
Keywords
Sparactus, SSR, CCV2 , KBA , CEC-SPA , SAP Commerce Cloud Spartacus , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview