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.

[Bug Report] VueCLI3 Production build Error: 'TypeError: Cannot read property 'isDark' of undefined'

See original GitHub issue

Versions and Environment

Vuetify: 2.0.0-beta.0 Vue: 2.6.10 Browsers: Chrome 74.0.3729.169 OS: Mac OS 10.14.5

Steps to reproduce

Expected Behavior

Root page loads without vender bundle errors.

Actual Behavior

v-btns and a link elements fail to load due to error reported in the console:

vue.runtime.esm.js:1888 TypeError: Cannot set property 'isDark' of undefined
    at a.handler (index.js:87)
    at a.t.$watch (vue.runtime.esm.js:4943)
    at yr (vue.runtime.esm.js:4900)
    at mr (vue.runtime.esm.js:4882)
    at or (vue.runtime.esm.js:4642)
    at a.t._init (vue.runtime.esm.js:5000)
    at new a (vue.runtime.esm.js:5148)
    at on (vue.runtime.esm.js:3283)
    at init (vue.runtime.esm.js:3114)
    at d (vue.runtime.esm.js:5972)

Reproduction Link

https://github.com/jvanst/requestly

Other comments

This problem only seems to exist when building with NODE_ENV = production (yarn build). Building the project with the mode flagged as development works fine, use yarn build-dev

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jvanstcommented, May 30, 2019

Thanks again for taking a look. I was able to resolve this by removing some bad code, but I still have no idea why it was an issue in production mode and not development.

0reactions
daneren2005commented, Sep 30, 2020

Thanks a lot for your detailed report. The strange thing in our case is that it only happens to a subset of our users. We can not reproduce it, which makes it very hard to track down. Maybe upgrading to Vuetify 2 will make it go away. 😉

Any chance did you ever find a work around for this? We are also only having it happen to end users randomly. Nothing we can do on our end reproduces it, even on the same production builds. We are using the Vue CLI’s modern build flag, but are having it happen on up to date versions of Chrome so I don’t think it is an old device issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'NormalModule' of undefined
Try this first: In your project root, run npm install . Maybe someone else on your project has changed/added a dependency, and pulling...
Read more >
Beginner Vue.js Tutorial with User Login - Auth0
Learn how to build a Vue.js application from scratch and easily add authentication so that users can register and login.
Read more >
cannot read properties of undefined (reading 'call') vue
The error message suggests you are trying to read something from an array at a specific index that is undefined. The only occurrence...
Read more >
Vue can not read property 'extend' of undefined from library ...
remove your vuetify script tag on your master index.html and the error will go away. dizad87 408. Source: stackoverflow.com ...
Read more >
DateBox - The "Cannot read property 'getHours' of undefined ...
Hi everyone, I found a VueJS bug that can be reproduced in your online example: https://codesandbox.io/s/pjymw1j25q If you try to choose ...
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