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

Base path reports error #52

Closed
Duckinm opened this issue Jul 28, 2021 · 0 comments · Fixed by blitz-js/blitz#2668
Closed

Base path reports error #52

Duckinm opened this issue Jul 28, 2021 · 0 comments · Fixed by blitz-js/blitz#2668

Comments

@Duckinm
Copy link

Duckinm commented Jul 28, 2021

What is the problem?

Whenever you set your own custom basepath in blitz.config.ts or blitz.config.js

All of the pages using Link components by Blitz will get warn:
import { Link } from 'blitz'

Paste all your error logs here:

From Chrome dev tools
Warning: Prop `href` did not match. Server: "/dashboard" Client: "/admin/dashboard"

From Terminal
warn  - Duplicate page detected. pages/app/admin/pages/dashboard.tsx and pages/app/pages/dashboard.tsx both resolve to /dashboard.

What are detailed steps to reproduce this?

Have to fix something on { Link } from 'blitz' to make it work properly, but you can make the warning disappear by using import Link from 'next/link' instead

Screen Shot 2564-07-29 at 12 52 20 AM

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

Successfully merging a pull request may close this issue.

3 participants