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

uni-app ts 模板无法使用pinia #5343

Open
yuwenOvO opened this issue Mar 14, 2025 · 2 comments
Open

uni-app ts 模板无法使用pinia #5343

yuwenOvO opened this issue Mar 14, 2025 · 2 comments

Comments

@yuwenOvO
Copy link

发行方式

小程序

具体平台

微信小程序

开发环境

macOS

项目创建方式

CLI命令行

依赖版本

Image

问题描述

[vite] [plugin:vite:import-analysis] Package subpath './dist/pinia.mjs' is not defined by "exports"
pinia报错,我看之前修复过,为什么代码又改回去了

Image

重现步骤

下载ts示例,运行

期望行为

No response

实际行为

No response

截图或录屏

No response

@Otto-J
Copy link
Member

Otto-J commented Mar 17, 2025

pinia 在 web 运行正常,其他端有兼容问题,暂不推荐使用 3.0 版本,后续会继续优化。

@yuwenOvO
Copy link
Author

暂不推荐使用 3.0 版本,后续会继续优化。

好的

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

2 participants