Closed chenxin9482 closed 2 years ago
这是我的调用方式
<template>
<Vue3CountryIntl v-model="state.userInfo.phoneCode" />
</template>
<script>
import Vue3CountryIntl from 'vue3-country-intl'
import 'vue3-country-intl/lib/vue3-country-intl.css'
export default {
components: { Vue3CountryIntl },
}
</script>
将vue3升级到最新版本试下,3.2.30
还是报错
把node_modules
删掉再重装试下,出现这个问题的就是引入了多次vue
,我之前也遇到过,我打包后的代码并不包含vue
本身
还是这样 12个报错 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'isCE')
怎么处理可以不包含vue?
你是打包还是本地调试?
本地
那不应该呀,你建个新项目试下,只引入我的这个插件
还真没报错,可是这样我怎么排查呢?还请大佬教教
你看下你有没有引入其他的组件,查查其他组件中是否将vue
本身打包进去了,或者看下你自己的代码是否即有使用import
形式导入vue
,然后还有<script>
标签形式引入vue
呃 不知道怎么看其他组件中是否将vue
本身打包进去了 第二种情况是没有的
查找Vue
关键字,看有没有定义Vue
的地方
没找到 可以加你微信帮我排查下么 会给你报酬的
地址栏上有我QQ
添加了
地址栏上有我QQ
现在有解决吗,我也出现一样的问题
还没有,不知道为什么在你们一用就 会出现这个问题,我本地引用打包后的代码都不会出现这个问题,方便的话加QQ详聊下
问题已解决,更新至1.0.8
版本即可 @magina000 @chenxin9482