-
-
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
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.