question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

nuxt-link does not work in transition-group

See original GitHub issue

Reproduction link

https://github.com/nuxt-community/nuxt-i18n

Steps to reproduce

  1. Install nuxt
  2. Install and configure nuxt-i18n
  3. Place nuxt-link in transition group with or without localePath()

nuxt.config.js

module.exports = {
  mode: 'universal',
  modules: [
    ['nuxt-i18n', {
      locales: [
        { code: 'en' },
        { code: 'fr' },
        { code: 'es' }
      ],
      defaultLocale: 'en',
      vueI18n: {
        fallbackLocale: 'en',
        messages: {
          en: {
            welcome: 'Welcome'
          },
          fr: {
            welcome: 'Bienvenue'
          },
          es: {
            welcome: 'Bienvenido'
          }
        }
      }
    }]
  ]
}

index.vue

<template>
  <div>
    <transition-group>
      <nuxt-link
        v-for="i in 3"
        :key="i"
        to="/new">
      New
      </nuxt-link>
    </transition-group>
  </div>
</template>

error.png

What is expected ?

Route transition

What is actually happening?

children is undefined

<div align="right">This bug report is available on Nuxt.js community (#c66)</div>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:11

github_iconTop GitHub Comments

3reactions
arantes555commented, Jan 30, 2019

Seeing the same issue here. In dev only, nuxt-link inside a transition-group with nuxt-i18n enabled gives the error. Removing any of those 4 makes it work fine.

1reaction
rchlcommented, May 9, 2019

Can’t reproduce it anymore myself. Even with old tests.

Read more comments on GitHub >

github_iconTop Results From Across the Web

nuxt-link does not work in transition-group · Issue #73 - GitHub
I tried running with npm run dev and npm start , and the issue only occured in dev. The issue also only occurs...
Read more >
transition element not working in SSR Nuxt.js - Stack Overflow
I am using <transition> in a component like below with Nuxt.js <template> <transition name="fade"> <div class="modal-container h-screen ...
Read more >
Transitions - Nuxt
Nuxt uses the transition component to let you create amazing transitions/animations between your routes.
Read more >
CSS Transitions In Vuejs And Nuxtjs - Smashing Magazine
Transitions are a nice way to remove, change, or update data in an application because their occurrence adds a nice effect and is...
Read more >
Native-Like Animations for Page Transitions on the Web
Today we'll be discussing how to create them with Vue and Nuxt. There are a lot of moving parts in page transitions and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found