Compilation error on 1.6 version
See original GitHub issueCurrent behavior
I have update an existing Vue Storefront 1.5 project to 1.6. And now I have an error on project compilation.
Expected behavior
1.6 Vue Storefront compile.
Steps to reproduce the issue
Reload home page.
Repository
Can you handle fixing this bug by yourself?
No.
My error is :
client-entry.ts:19 Uncaught TypeError: Cannot read property 'config' of undefined at Module../core/client-entry.ts (client-entry.ts:19) at __webpack_require__ (bootstrap:787) at fn (bootstrap:150) at Object.0 (app.js:42935) at __webpack_require__ (bootstrap:787) at checkDeferredModules (bootstrap:45) at Array.webpackJsonpCallback [as push] (bootstrap:32) at app.js:1
I localise a problem in the core/client-entry.js file. window.__INITIAL_STATE__
isn’t set.
There’s a link with the SRR feature ?
Additional information
I use a custom theme, with the default theme it’s working
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:6
Top GitHub Comments
I have added
renderState()
andrenderScripts()
functions to my index.html theme, and it’s working. It’s my mistake, I forgot to update this file during the 1.6 upgrade.Thanks for your accurate and quick answers 👍
You have renderState() and renderScripts() calls mixes comparing it to default index: https://github.com/DivanteLtd/vue-storefront/blob/master/src/themes/default/index.template.html (this is current default)