iamstevendao / vue-tel-input

International Telephone Input with Vue
https://iamstevendao.com/vue-tel-input/
MIT License
797 stars 339 forks source link

Running into 'TypeError: Cannot read properties of null (reading 'isCE')' #433

Open ajmas opened 9 months ago

ajmas commented 9 months ago

I running into the following error, since installing vue-tel-input:

TypeError: Cannot read properties of null (reading 'isCE')

Looking at this stack exchange article, makes me wonder whether vue should be defined as a peer depdendency in this project:

https://stackoverflow.com/questions/72036673/typeerror-cannot-read-properties-of-null-reading-isce-custom-component-li

Using version 8.3.1 with a Vue3/Quasar based project.

Component used as:

  <vue-tel-input
    v-model="inputVal"
    :placeholder="label"
  />

and in the script:

import { VueTelInput } from 'vue-tel-input';
import 'vue-tel-input/vue-tel-input.css';

Output:

client-entry.js:118 TypeError: Cannot read properties of null (reading 'isCE')
    at renderSlot (vue-tel-input.js?v=294f60fc:2301:32)
    at Proxy.l0 (vue-tel-input.js?v=294f60fc:7906:9)
    at renderComponentRoot (chunk-LE56S5HW.js?v=294f60fc:2213:17)
    at ReactiveEffect.componentUpdateFn [as fn] (chunk-LE56S5HW.js?v=294f60fc:7000:46)
    at ReactiveEffect.run (chunk-LE56S5HW.js?v=294f60fc:239:19)
    at instance.update (chunk-LE56S5HW.js?v=294f60fc:7110:52)
    at setupRenderEffect (chunk-LE56S5HW.js?v=294f60fc:7118:5)
    at mountComponent (chunk-LE56S5HW.js?v=294f60fc:6915:5)
    at processComponent (chunk-LE56S5HW.js?v=294f60fc:6868:9)
    at patch (chunk-LE56S5HW.js?v=294f60fc:6366:11)
ajmas commented 9 months ago

Switching to 6.0.5 resolved this. I also notice this version does specify Vue as a peer dependency (if this is indeed the root cause)