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
Not sure if this is a bug or a feature. Currently usage of this package will break the experience for users of Safari versions below 14, with the following JS exception:
Unexpected token '='. Expected an opening '(' before a method's parameter list.
ReactUSWDS Version & USWDS Version:
Describe the bug
Not sure if this is a bug or a feature. Currently usage of this package will break the experience for users of Safari versions below 14, with the following JS exception:
A related Stackoverflow on this error is here.
To Reproduce
Open any project using the package, including the React USWDS Storybook, in Safari 13. Observe the error in the console (and a blank page).
Expected behavior
I'm not sure if this is expected or not. The browserslist is likely where this is surfacing from.
Screenshots
I was able to reproduce and then resolve this issue in a Next.js project by configuring Next.js to transpile the
"@trussworks/react-uswds"
package.Before the transpiling:
After:
The text was updated successfully, but these errors were encountered: