-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
fix(nuxt): update middleware and layouts type declarations #31808
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
|
WalkthroughThis change updates the generation of TypeScript declaration files for middleware, layouts, and view transitions in the Nuxt pages module. It replaces the previous module augmentation target, which used a relative path to a local composables file in the build directory, with a fixed global module name Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (2)
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:
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
CodeRabbit Configuration File (
|
WalkthroughThe update adjusts the internal logic for generating TypeScript declaration files related to middleware, layouts, and view transitions in the Nuxt pages module. The main change is that the template functions responsible for producing these type declarations now only use the 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (2)
🔇 Additional comments (3)
✨ Finishing Touches
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:
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
CodeRabbit Configuration File (
|
@nuxt/kit
nuxt
@nuxt/schema
@nuxt/rspack-builder
@nuxt/vite-builder
@nuxt/webpack-builder
commit: |
CodSpeed Performance ReportMerging #31808 will not alter performanceComparing Summary
|
the type tests are failing. you might want to check the pr that introduced the fully resolved declaration path to see why we did it. it would also be helpful if you could prepare a reproduction (without a module) that shows the issue? |
🔗 Linked issue
closes: productdevbook/better-auth-nuxt#3
resolves #31746
📚 Description
Refactor type declarations for middleware and layouts to correctly reference 'vue-router', improving type safety and consistency across the application.
when we type vue-router we do not see nuxt, the path is defined, why is this so.