0

I am attempting to create an image link in Nuxt component

 <NuxtLink
            v-if="player?.image_url"
            :to="`/players/${player.slug}`"
            >
          <img
            class="w-16 h-16 rounded-full object-cover border border-rgba-blackLight"
            :src="player?.image_url"
            :alt="player?.fullName"
          />
        </NuxtLink>

the image displays, but the link is undefined.

no error in console. Intellij complains it cannot resolve directory "`" or "players"

The page I am trying to link to is located at pages/players/[:slug]

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.