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.

[vue-3] Uncaught TypeError: Cannot read properties of undefined (reading 'defaultConfig')

See original GitHub issue

Hi, Using Vue3 as CDN.

<flat-pickr v-model="birthdate" :config="{ dateFormat: 'Y-m-d', allowInput: false, altInput: true, altFormat: 'm/d/Y', disableMobile: 'true',}" class="form-control form-control-sm bg-white"></flat-pickr>
[Vue warn]: Unhandled error during execution of mounted hook 
  at <FlatPickr modelValue=null onUpdate:modelValue=fn<onUpdate:modelValue> config= {dateFormat: 'Y-m-d', allowInput: false, altInput: true, altFormat: 'm/d/Y', disableMobile: 'true'}  ... > 
  at <App>
warn$1 @ vue.global.js:8035
logError @ vue.global.js:8209
handleError @ vue.global.js:8201
callWithErrorHandling @ vue.global.js:8155
callWithAsyncErrorHandling @ vue.global.js:8161
hook.__weh.hook.__weh @ vue.global.js:3475
flushPostFlushCbs @ vue.global.js:8347
render @ vue.global.js:6393
mount @ vue.global.js:4673
app.mount @ vue.global.js:10619
(anonymous) @ index-1.html:91

vue.global.js:8215 Uncaught TypeError: Cannot read properties of undefined (reading 'defaultConfig')
    at vue-flatpickr.js:196
    at Array.forEach (<anonymous>)
    at Proxy.mounted (vue-flatpickr.js:194)
    at callWithErrorHandling (vue.global.js:8152)
    at callWithAsyncErrorHandling (vue.global.js:8161)
    at Array.hook.__weh.hook.__weh (vue.global.js:3475)
    at flushPostFlushCbs (vue.global.js:8347)
    at render (vue.global.js:6393)
    at mount (vue.global.js:4673)
    at Object.app.mount (vue.global.js:10619)
(anonymous) @ vue-flatpickr.js:196
mounted @ vue-flatpickr.js:194
callWithErrorHandling @ vue.global.js:8152
callWithAsyncErrorHandling @ vue.global.js:8161
hook.__weh.hook.__weh @ vue.global.js:3475
flushPostFlushCbs @ vue.global.js:8347
render @ vue.global.js:6393
mount @ vue.global.js:4673
app.mount @ vue.global.js:10619
(anonymous) @ index-1.html:91

Thank you

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
amchconsultcommented, Dec 30, 2021

Thank you for your help. I got it working now.

0reactions
ankurk91commented, Dec 30, 2021

Your given example is in-complete, i was unable to re-produce the issue. See my example in action here https://jsfiddle.net/ankurk91/63kzdwLx/3148/

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read properties of undefined (reading 'meta') in Vue 3 ...
In your individual application you need to set a field in the vue.config.js: module.exports = { // various other settings such as publicPath ......
Read more >
Vue: Add Vue3 support #10654 - storybookjs/storybook - GitHub
Uncaught TypeError : _vue.default is not a constructor at Object. ... TypeError: Cannot read properties of undefined (reading ...
Read more >
[vue warn]: error in render: "typeerror: cannot read properties ...
I'm using Vue3 and Vuex4 , I keep getting the error: Uncaught TypeError: ... Jest Vuex TypeError: Cannot read properties of undefined (reading...
Read more >
Cannot read properties of undefined (reading 'meta') in Vue 3 ...
Coding example for the question Cannot read properties of undefined (reading 'meta') in Vue 3 single-spa app-Vue.js.
Read more >
Uncaught (in promise) TypeError: Cannot read property 'i18n ...
Uncaught (in promise) TypeError: Cannot read property 'i18n' of undefined ... Hi There, I have configured and installed vue-storefront for ...
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