-
Notifications
You must be signed in to change notification settings - Fork 226
fix(package): 降低vue-i18n版本号 #635
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
Conversation
📝 WalkthroughWalkthrough本次变更将 Changes
Possibly related PRs
Suggested labels
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
web/package.json (1)
1-104: 请确认锁文件已同步更新
修改package.json后,请确保对应的package-lock.json或pnpm-lock.yaml已经重新生成、提交并通过 CI 检查,避免因锁文件不同步导致的版本漂移问题。
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
web/package.json(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (4)
- GitHub Check: Codacy Static Code Analysis
- GitHub Check: PHP CS Fix on PHP8.1 swoole
- GitHub Check: build Code coverage report (ubuntu-latest, 8.1, v5.1.3)
- GitHub Check: build
🔇 Additional comments (1)
web/package.json (1)
49-51: 锁定 vue-i18n 版本以解决启动失败
将依赖由^11.1.2修改为精确11.1.2,能规避新版本对useI18n本地作用域调用的严格限制,从而恢复项目正常启动。
🐞 问题描述
在启动 MineAdmin-UI 项目时,控制台出现如下错误:
该错误由
vue-i18n版本升级引起,某些版本对useI18n的调用方式有严格限制,导致项目无法正常启动。🔧 修改说明
为避免此问题,将
vue-i18n的版本锁定为11.1.2,确保与项目现有结构兼容,避免因版本差异导致启动失败。📌 影响范围
该修改可确保 MineAdmin-UI 项目在安装依赖后能稳定运行,无需修改现有代码逻辑。
Summary by CodeRabbit