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
Non-consistent basePath checking behaviour #38984
Comments
probably related to issue #38967 |
Hi, an empty string isn't a valid |
@ijjk but the error explicitly says that there may be an empty string 😕 |
Hmm since we do mention the empty string is allowed and we normalize the value, it seems alright to avoid the warning here |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:37 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T6000 Binaries: Node: 16.15.0 npm: 8.5.5 Yarn: 3.2.1 pnpm: N/A Relevant packages: next: 12.2.3 eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
If basePath is an empty string, a warning is displayed:
But if you set the basePath to
/
an error occurs:Expected Behavior
Allow either an empty string or a slash as basePath
Link to reproduction
To Reproduce
The text was updated successfully, but these errors were encountered: