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

Should change '@vue/runtime-core' to 'vue' #1915

Closed
4 tasks done
sunxi1997 opened this issue Aug 13, 2024 · 1 comment
Closed
4 tasks done

Should change '@vue/runtime-core' to 'vue' #1915

sunxi1997 opened this issue Aug 13, 2024 · 1 comment

Comments

@sunxi1997
Copy link

Reporting a bug?

vue-i18n@latest is no longer compatible with vue-router@latest

Expected behavior

vue-i18n should replaces declare module '@vue/runtime-core' with declare module 'vue' like it's supposed to be. If you are also augmenting @vue/runtime-core, you will likely have to change it to vue.

What did vue-router do

Reproduction

Problem Like This
屏幕录制 2024-08-13 095606

System Info

{
  "name": "demo",
  "version": "0.0.0",
  "private": true,
  "type": "module",
  "scripts": {
    "dev": "vite",
    "preview": "vite preview",
    "build-only": "vite build",
    "type-check": "vue-tsc --build --force"
  },
  "dependencies": {
    "vue": "^3.4.29",
    "vue-i18n": "^9.13.1",
    "vue-router": "^4.4.3"
  },
  "devDependencies": {
    "@tsconfig/node20": "^20.1.4",
    "@types/node": "^20.14.5",
    "@vitejs/plugin-vue": "^5.0.5",
    "@vue/tsconfig": "^0.5.1",
    "typescript": "~5.4.0",
    "vite": "^5.3.1",
    "vue-tsc": "^2.0.21"
  }
}

Screenshot

image
image

Additional context

No response

Validations

@sunxi1997 sunxi1997 added the Status: Review Needed Request for review comments label Aug 13, 2024
@kazupon
Copy link
Member

kazupon commented Aug 13, 2024

Thank you for your reporting!

I've already fixed at below PR
#1888

You can try to use v10 beta

@kazupon kazupon added tips API and removed tips labels Aug 13, 2024
@kazupon kazupon added tips and removed Status: Review Needed Request for review comments labels Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants