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

fix(module): correct runtime nuxt hook module path #2282

Merged
merged 2 commits into from
Aug 1, 2023
Merged

fix(module): correct runtime nuxt hook module path #2282

merged 2 commits into from
Aug 1, 2023

Conversation

dargmuesli
Copy link
Collaborator

@dargmuesli dargmuesli commented Jul 31, 2023

πŸ”— Linked issue

n/a

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Hooks like i18n:localeSwitched as used in https://v8.i18n.nuxtjs.org/guide/runtime-hooks#usage lead to a linter error for me when used together with @harlan-zw's nuxt-seo-kit-module unless I make the module declaration path more specific as done in this PR. Could the reason be that Harlan's declaration is more specific and shadows the currently used declaration somehow?

See for context: https://github.com/harlan-zw/nuxt-seo-experiments/blob/c6ae207dd1aac9c519f26dff8ce1713cce1048b9/src/templates.ts#L19

I'll setup a minimal reproduction if necessary ❀️

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

Copy link
Collaborator

@kazupon kazupon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!
Thanks! ❀️

@kazupon kazupon merged commit c1b0007 into nuxt-modules:next Aug 1, 2023
4 checks passed
@dargmuesli dargmuesli deleted the patch-1 branch August 1, 2023 02:18
DarthGigi pushed a commit to DarthGigi/i18n that referenced this pull request Apr 16, 2024
* fix(module): correct runtime nuxt hook module path

* chore(typescript): add `#app` subdirectory paths to configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants