Using i18n configuration throws "Warning: Prop href
did not match" error
#24442
Labels
bug
Issue was opened via the bug report template.
href
did not match" error
#24442
What version of Next.js are you using?
10.0.8
What version of Node.js are you using?
14.16.1
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
Custom server for development
Describe the Bug
I am getting a
Warning: Prop `href` did not match
error after addingi18n
/Internationalized Routing
to mynext.config.js
file. Note, that without adding that, this error does not occur. The i18n section of mynext.config.js
file:Below is the error I receive. Note that I am developing on
http://localhost
, but for some reasonnext.js
is forcinghttps
on the server:Warning: Prop `href` did not match. Server: "https://localhost/" Client: "/"
This error traces back to the
href
property set on thenext/link
Component.Next version:
10.0.8
Expected Behavior
I expect this error to not occur...
To Reproduce
Adding the above i18n configuration to a next.js project.
The text was updated successfully, but these errors were encountered: