Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue-echarts 6.0 echarts5.0 单文件引入 报错Object(...) is not a function #519

Closed
YorkZhangZ opened this issue Mar 3, 2021 · 9 comments

Comments

@YorkZhangZ
Copy link

image

@cjjlovedsn
Copy link

vue-demi中不存在mergeProps方法导致的错误

@mishengqiang
Copy link

in ./node_modules/vue-echarts/dist/index.esm.min.js

"export 'mergeProps' (imported as 'v') was not found in 'vue-demi'

@YorkZhangZ
Copy link
Author

vue-demi中不存在mergeProps方法导致的错误

vue-demi 这文件我看着是node_modules里的,我这里该怎么处理呢

@mishengqiang
Copy link

vue-demi中不存在mergeProps方法导致的错误

vue-demi 这文件我看着是node_modules里的,我这里该怎么处理呢

我看了源码vue-demi中的mergeProps来自Vue,但是只有最新的Vue3有这个API,vue2.x是没有的。

@Justineo
Copy link
Member

Justineo commented Mar 3, 2021

应该是 @vue/composition-api 不支持 mergeProps 导致的,我们自己处理一下,不直接引入了。

See vuejs/composition-api#390 (comment)

@Justineo
Copy link
Member

Justineo commented Mar 3, 2021

Fixed in 6.0.0-beta.5.

@Justineo Justineo closed this as completed Mar 3, 2021
@Ice-Hazymoon
Copy link

TypeError:Object(...) is not a function

这个问题貌似依旧存在

echarts 5.3.2
vue-echarts 6.0.3
nuxt 2.15.8
@nuxtjs/composition-api 0.32.0

TypeError:Object(...) is not a function

import {watch as e, inject as t, computed as n, unref as o, watchEffect as r, defineComponent as i, shallowRef as a, toRefs as u, onMounted as c, onUnmounted as s, h as l, Vue2 as p, nextTick as v} from "vue-demi";

@Justineo
Copy link
Member

@Ice-Hazymoon 请提交一个新的bug,并且提供一下最小的复现场景,谢谢。

@oushu1suzhijie1
Copy link

Ice-Hazymoon

请问最后如何解决了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants