-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
NuxtImg: WARN Overriding NuxtImg component. #25787
Comments
same |
same |
I've come here to report the same issue, as it might be the reason for the changes in image size when refreshing the page 🤔 |
I fix it by moving devtools: { enabled: true } on top of the defineNuxtConfig and moving image object to bottom
|
I had the same problem |
+1 |
I feel like this project is kind of abandoned even though it's an official package and pretty new. Most of the issues have zero answers. |
Oddly enough the answer from @dam-orzel seems to fix the issue for me too. Note: Since Nuxt 3.8 devtools is enabled by default. If you add the export default defineNuxtConfig({
devtools: { enabled: true },
// ..
image : { /* ... */ }
}) |
I plan to give it another try, as my previous attempt was unsuccessful 😬 Thank you both! It's worth noting that the package is licensed under MIT, which means it's provided without warranty. Rather than assuming it's abandoned, let's explore the code ourselves and be patient. |
I have the same issue and have never added Nuxt UI to my project. The problem started after I updated Nuxt to 3.8.0. and it's still there on 3.8.2. |
Same. However, I think it is related somehow, as Nuxt DevTools uses |
I have the same issue with |
I even tried to set But not all files, only Since I have no direct dependency on Last but not least I updated all my dependencies to latest versions available. The problem is still there.
|
Would you be able to provide a reproduction? 🙏 More infoWhy do I need to provide a reproduction?Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making. What will happen?If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritise it based on its severity and how many people we think it might affect. If How can I create a reproduction?We have a template for starting with a minimal reproduction: 👉 https://stackblitz.com/github/nuxt/image/tree/main/example A public GitHub repository is also perfect. 👌 Please ensure that the reproduction is as minimal as possible. See more details in our guide. You might also find these other articles interesting and/or helpful: |
https://stackblitz.com/edit/github-znuutj?file=composables%2FuseTest.ts
|
any update on this? |
How to investigate or debug it? |
I've just tried this under windows and linux and the issue is still there even after the above patch npx nuxi@latest init docs -t themes/docus
cd docs
pnpm install --shamefully-hoist
pnpm add @nuxt/image then just add '@nuxt/image' to the modules section |
The fix is released in the latest version of Nuxt Kit but other modules may be using older versions. Try adding a resolution or override to pin the kit version to the latest one. |
Also having this with shadcn-vue
Edit: |
I've got this warning too in
|
@AlvinWang627 Would you open a new issue with a reproduction? 🙏 |
I found the error, it's my problem. I put |
For anyone else getting this kind of error
... and finding neither of the above solutions work, I realised that it can be caused by actual duplication. Despite the shadcn-vue component names being different, its The solution was simply to delete one from each. |
Hello team,
I get this warning in the console when using the
NuxtImg
component but I can't understand what it means.info of nuxt:
The text was updated successfully, but these errors were encountered: