You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a rewrite has condition regex errors are thrown in older browsers that Next.js supports.
Error:
SyntaxError: Invalid regular expression: unrecognized character after (?
Stack:
[native code] in RegExp
/_next/static/chunks/polyfills-283031c735651d1762e0.js in fi at line 1:37280
/_next/static/chunks/f6078781a05fe1bcb0902d23dbbb2662c8d200b3.7b6fc0bd183f5b80ad0c.js at line 1:5376
[native code] in every
/_next/static/chunks/f6078781a05fe1bcb0902d23dbbb2662c8d200b3.7b6fc0bd183f5b80ad0c.js in matchHas at line 1:5059
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.
What version of Next.js are you using?
10.2.3
What version of Node.js are you using?
14.16.0
What browser are you using?
Safari <=10, IE 11, Edge 14-18
What operating system are you using?
macOS, Windows
How are you deploying your application?
next start
Describe the Bug
When using a rewrite has condition regex errors are thrown in older browsers that Next.js supports.
Error:
Stack:
Example condition:
Expected Behavior
Regex used in paths and rewrite conditions should be supported in older browsers that Next.js supports.
To Reproduce
Invalid regular expression: unrecognized character after (?
Current host is next-has-condition-regex-bug.vercel.app
App Source Code: https://github.com/jamsinclair/next-has-condition-regex-bug
The text was updated successfully, but these errors were encountered: