Invalid href passed to router error after fresh installed create-next-app


After installed nextjs app on my local machine using create-next-app I get this error in console Invalid href passed to router.

Does anyone know how to solve it?

I try to use to attribute instead of href attribute in Link component’s but it doesn’t help.


Removing the protocol http or https from the external url fixes this issue

example should be //

Leave a Reply

Your email address will not be published. Required fields are marked *