I am using nuxt version 2.15.8
in my project. I want to install and use NuxtImage
module in my project. Acoording to its docs, running npm install -D @nuxt/image
command must install the version that is compatible to nuxt-2. But after that I see this warning in my command line when I use npm run dev
command:
Why this happens, when the docs is saying that version is compatible with nuxt-2?
https://github.com/nuxt/image#nuxt-2
Nuxt 2 Note: This branch is for Nuxt 3 compatible module. Checkout v0 branch for Nuxt 2 support. (Announcement)
You should use v0
branch for Nuxt 2. So install it with:
npm i @nuxt/image@v0