-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
fix(nuxt): only augment vue
, not sub-packages
#28542
Conversation
Run & review this pull request in StackBlitz Codeflow. |
/trigger release |
So just to be sure, we're sticking with augmenting There may be a way for users to still have working types while modules are catching up, see https://stackblitz.com/edit/github-dz3tm4-brftas?file=pages%2Findex.vue,nuxt.config.ts,shim.d.ts. Maybe this causes other issues, I haven't tested it thoroughly 🤷♂️ |
See: nuxt/nuxt#28542 Signed-off-by: Roman Ondráček <[email protected]>
This removes augmentations of `@vue/runtime-core` in favour of only augmenting vue, which should fix issues when other packages (like `vue-router`) are only augmenting `vue` (see nuxt/nuxt#28542)
…#28446 and nuxt/nuxt#28542 @ fe $ composer update @ be
…t/nuxt#28446 * fix class `ms-1` only occurs on not-2th username @ `<PostBadgeThreadAuthorAndLatestReplier>` - prop `expandRowByClick` of `<ATable>` @ <PostRendererTable>` * widden the type of param `name` of `routeNameWithCursor()` and guard it against `assertRouteNameIsStr()` to be like `routeNameWithoutCursor()` * only return the modified route name and param `cursor` without any parts like `query` or other params from param `route` @ `getNextCursorRoute()` @ router.ts * fix regression of 0917db2 as `defineOgImageComponent()` now seem being able to `unref()` internally: nuxt-modules/og-image#190 @ post/seo/index.ts @ utils @ fe
"@vue/runtime-core" ではなく "vue" の型を拡張しないとすべての型が壊れてしまう ref: nuxt/nuxt#28542
"@vue/runtime-core" ではなく "vue" の型を拡張しないとすべての型が壊れてしまう ref: nuxt/nuxt#28542
"@vue/runtime-core" ではなく "vue" の型を拡張しないとすべての型が壊れてしまう ref: nuxt/nuxt#28542
Vue Router 4.4.1 以降で declare module "vue" を使うように変更されたことで、他の GlobalComponents を拡張するライブラリがインストールされている場合にそれらが全て壊れる問題がコミュニティ全体で発生している VOICEVOX 同様にこのリポジトリでは依存関係を固定しているが、npm upgrade で今までバージョンが固定されていなかった Vue Router だけ更新されてしまうと Quasar の型がぶっ壊れるので、当面の間 4.4.0 以下に留まる (要は Vue Router 4.4.1 以降に更新するなら、それに対応した Vue エコシステムに全てエイヤで更新する必要がある) ref: nuxt/nuxt#28542
This PR removes augmentations of `@vue/runtime-core` in favour of only augmenting `vue` (the new recommendation), which should fix issues when other packages are only augmenting vue (see nuxt/nuxt#28542).
🔗 Linked issue
resolves #28561
📚 Description
This removes augmentations of
@vue/runtime-core
in favour of only augmenting vue, which should fix issues when other packages (likevue-router
) are only augmenting vue (release notes).This may cause issues until the ecosystem moves away from other augments.