[Bug Report] VueCLI3 Production build Error: 'TypeError: Cannot read property 'isDark' of undefined'
See original GitHub issueVersions 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
yarn install
yarn build
- Serve ‘/dist’ folder via http (I have been using https://www.npmjs.com/package/serve)
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:
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.