Skip to content
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

Icon issue Cannot read properties of null (reading 'insertBefore') #279

Open
Knordy opened this issue Oct 11, 2024 · 0 comments
Open

Icon issue Cannot read properties of null (reading 'insertBefore') #279

Knordy opened this issue Oct 11, 2024 · 0 comments

Comments

@Knordy
Copy link

Knordy commented Oct 11, 2024

There seems to be an issue with the icons when navigating from a page that's a couple of layers deep to a page on the first layer, both in dev an production. In the browser console the following error is generated:

TypeError: Cannot read properties of null (reading 'insertBefore')

See the following sample repo: https://github.com/Knordy/nuxt-icon-issue, using the latest version 1.5.6

The steps to reproduce are:

  • From Home click on A3
  • From A3 click on A4
  • From A4 click on B

Removing the icons does not trigger this error.
Removing page A, A1 and A2, but keeping the depth of the pages does not trigger the error.
Following various other navigation paths does not trigger the error: from Home -> A1 -> A4 -> B for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant