martpie / next-transpile-modules

Next.js plugin to transpile code from node_modules. Please see: https://github.com/martpie/next-transpile-modules/issues/291
MIT License
1.13k stars 85 forks source link

Safari - SyntaxError: Invalid regular expression: invalid group specifier name #228

Closed tbutcaru-gpsw closed 2 years ago

tbutcaru-gpsw commented 2 years ago

Are you trying to transpile a local package or an npm package? Local packages

Describe the bug Running the NextJS app in production mode on Safari results in the following error: image

To Reproduce Build a monorepo app using yarn workspaces and run it in production mode on Safari browser.

Expected behavior Safari should work the same as Chrome, no console errors.

Setup

Additional context Tested version ^7.0.0 of next-transpile-modules with next v11.0.1 and the issue no longer occurs, but v7.x.x is not officially compatible with next11.

martpie commented 2 years ago

Sorry I am not providing support for people who don't check both checkboxes.