I am developing a Next.js app with version 13.4 and I am getting this warning in the console:
The resource <URL> was preloaded using link preload but not used within a few seconds from the window’s load event. Please make sure it has an appropriate as value and it is preloaded intentionally.
The number of the error is increasing.
2
Answers
From the warning image, it looks like you are preloading css files. While using preload, you will need to specify
href
andas
attributes. I think you have not addedas
attribute.Add them like this.
Check this document for more details on this
Make sure in layout page you destruct props {children} NOT {Children} with capital letter