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

When using vite2.9 and vue3.4.9 and above, it throws does not provide an export createBlock ,vue3.4.8 and below is normal. #10177

Closed
zhangyuandai opened this issue Jan 22, 2024 · 3 comments
Labels
can't reproduce need more info Further information is requested

Comments

@zhangyuandai
Copy link

zhangyuandai commented Jan 22, 2024

Vue version

3.4.9 and above

Link to minimal reproduction

https://github.com/tencentyun/TUIRoomKit/tree/main/Electron/vue3

Steps to reproduce

1.Upgrade the vue version to 3.4.9 in the package.json file (the current version of the project is fixed to 3.3.13 for proper operation)
2. pnpm install
3. pnpm run dev

What is expected?

The project runs normally and the console reports no errors

What is actually happening?

The detailed error report is shown below
https://web.sdk.qcloud.com//trtc/webrtc/test/miles-test/image/clipboard_20240122_035231.png

System Info

  System:
    OS: macOS 13.6.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 56.77 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 14.18.2 - ~/emsdk/node/14.18.2_64bit/bin/node
    Yarn: 1.22.21 - ~/emsdk/node/14.18.2_64bit/bin/yarn
    npm: 6.14.15 - ~/emsdk/node/14.18.2_64bit/bin/npm
    pnpm: 7.21.0 - /usr/local/bin/pnpm
  Browsers:
    Chrome: 120.0.6099.234
    Safari: 16.6

Any additional comments?

electron environment.
Besides that, tried 3.4.8 version of vue, it is working fine, upgrading to 3.4.9 will have this problem, so fixed the project version to 3.3.13

@zhangyuandai zhangyuandai changed the title 使用vite2.9 和 vue3.4.9 及以上版本时,抛出does not provide an export createBlock ,vue3.4.8及以下版本是正常的 When using vite2.9 and vue3.4.9 and above, it throws does not provide an export createBlock ,vue3.4.8 and below is normal. Jan 22, 2024
@LinusBorg
Copy link
Member

LinusBorg commented Jan 22, 2024

Vue 3.4 may require an upgrde of Vite, or at least @vitejs/plugin-vue, to 5.0

See also: https://blog.vuejs.org/posts/vue-3-4#potential-actions-needed

Though this particular error doesn't seem to be related to that, createBlock is an export of Vue in 3.3 and 3.4.

@sodatea
Copy link
Member

sodatea commented Jan 28, 2024

Can't reproduce.
Could you please provide a stable reproduction with a lockfile?

@sodatea sodatea added need more info Further information is requested can't reproduce labels Jan 28, 2024
@yyx990803
Copy link
Member

Closing as stale due to lack of follow up for valid reproduction. Please open a new issue if a valid reproduction can be provided.

@github-actions github-actions bot locked and limited conversation to collaborators Feb 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
can't reproduce need more info Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants