Redwood: Firefox bug and “Something went wrong in browser”: Router regex not supported in Firefox

Created on 10 Mar 2020  ·  3Comments  ·  Source: redwoodjs/redwood

The reroute function generates Regexes that use named capture groups: https://github.com/redwoodjs/redwood/blob/7a5cc6733f54a9ac49356c609e996884517022d2/packages/router/src/util.js#L33

This isn't supported in Firefox (and probably a lot of other browsers) and causes examples to break there with "invalid regexp" errors. You'll probably need to either polyfill it with Babel or switch off of named capture groups.

bu2-confirmed kinbug router

Most helpful comment

Not to get our hopes up about a FF fix coming just in time, but there's been activity on their upstream issue as of 15 days ago:
https://bugzilla.mozilla.org/show_bug.cgi?id=1367105

All 3 comments

Looks like a similar issue in the forum with some browser console output:
https://community.redwoodjs.com/t/running-into-an-issue-at-getting-dynamic-in-the-tutorial/149/6

Currently we do NOT have a fix for this. Please use alternate browser for now.

Not to get our hopes up about a FF fix coming just in time, but there's been activity on their upstream issue as of 15 days ago:
https://bugzilla.mozilla.org/show_bug.cgi?id=1367105

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tmeasday picture tmeasday  ·  4Comments

jeliasson picture jeliasson  ·  3Comments

josteph picture josteph  ·  3Comments

zwl1619 picture zwl1619  ·  3Comments

weaversam8 picture weaversam8  ·  3Comments