Install @nuxt/image with nuxt 3.3.3
Hi, I have a question about
@nuxt/image
compatibility.
My environment is:
- Nuxt: 3.3.3
- Node.js: 18
I'm looking to add the @nuxt/image
module to optimize images, but I want to make sure I choose a version that won't cause any compatibility problems. Does anyone have experience with this specific setup and can suggest a reliable version of @nuxt/image
to install?
Thanks in advance for your help!2 Replies
Hi @buicaochinh. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Based on the available knowledge sources, the recommended version of
@nuxt/image
for Nuxt 3 is the v1.x release. The official documentation for Nuxt Image v1 states it is compatible with Nuxt 3, and the installation instructions are as follows:
or
and then add it to your nuxt.config
:
This documentation is for Nuxt 3.x, and there is no mention of incompatibility with Nuxt 3.3.3 specifically. The docs also clarify that v1 is for Nuxt 3, while v0 is for Nuxt 2. If you are using Nuxt 3.3.3 and Node.js 18, you should use the latest v1.x version of @nuxt/image
for best compatibility and support. If you encounter any issues, the troubleshooting section suggests ensuring you are on an LTS version of Node.js (which you are) and using the latest module version Nuxt Image Installation.
There is no explicit mention of issues with Nuxt 3.3.3 and @nuxt/image
v1.x in the knowledge sources, so you should be safe to proceed with the latest v1.x release. If you do encounter any problems, consider updating Nuxt to a more recent 3.x version, as the module is tested against the latest Nuxt 3 releases.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@699869614623948891> Kapa.ai is still learning and improving, please let me know how I did by reacting below.