question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compilation error on 1.6 version

See original GitHub issue

Current 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:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:6

github_iconTop GitHub Comments

1reaction
mj-devcommented, Dec 19, 2018

I have added renderState() and renderScripts() 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 👍

0reactions
pkarwcommented, Dec 19, 2018

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)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kotlin 1.6, Jetpack Compose 1.1.0 compilation error
The compile error at the start of the thread is a bug in kotlin 1.6.0 and 1.6.10, this sets only the compose compiler...
Read more >
1171817 – Hello example incompatible with java-1.6
An issue with the Hello example not being compatible with java-1.6 because of "try-with-resources" (introduced in java-1.7) caused compilation errors when ...
Read more >
handle better "javac: invalid target release: 1.6" compilation error
Steps to reproduce 1. start the IDE with JDK 6 2. create a web app project. 3. Set the Source/Binary Format property to...
Read more >
Fixing Unsupported major.minor version 52.0 Error in Java
Unsupported major.minor version 52.0 comes when you are trying to run a class compiled using Java 1.8 compiler into a lower JRE version...
Read more >
How to Fix UnsupportedClassVersion Error in Java - Rollbar
The UnsupportedClassVersionError in Java occurs when the JVM attempts to read a malformed or otherwise erroneous class file.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found