Open loongzhu opened 2 weeks ago
+1 同遇到问题
It seems like a break change from https://github.com/vuejs/core/pull/11502 .
The inject
get context from the current instance
prototype before, and then now get context from currentApp
first .
For now, you can downgrade to Vue version 3.4.36
.
https://github.com/vuejs/pinia/commit/014869be796b6a96afee7b2d9cbfe5073c943292
Version
4.2.5
Environment
Windows 11 专业工作站版 22631.4169, Chrome 129.0.6668.90,Vue 3.5.11
Reproduction link
https://stackblitz.com/edit/vitejs-vite-zzcl2j?file=README.md
Steps to reproduce
点击
click
按钮What is expected?
报错
globalStore.message.success is not a function
What is actually happening?
正确弹出 message 组件