-
Notifications
You must be signed in to change notification settings - Fork 27.3k
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
Es2018 Unicode Property Escapes Not working #19303
Comments
Can you add a complete reproduction? |
@timneutkens Sorry for not including a reproduction demo. Please see it here https://codesandbox.io/s/muddy-cookies-9jr6z?file=/pages/index.js |
Current workaround:
const presets = [
'next/babel'
];
const plugins = [
'@babel/plugin-transform-unicode-regex'
];
module.exports = {presets, plugins}; Might not be the best thing to do, but at least it fixes the issue 😄 |
Awesome!! Let's hope a proper fix lands on a future release. Haven't got time to check in detail |
Was trying this last night and got an error like below. Adding Codesandbox URL with error. |
Same issue with |
Still occurring as of |
This worked for me. Thanks |
This workaround works 👍 Subscribing this issue, waiting for official fixes. |
This is still an issue. Adding a custom babel config breaks builds in 14 as the current documentation doesn't explain how to extend babel config without overriding next's default settings. |
This bug is happening to us on Next.js 14.2.3. Any news on a fix? Could you help us applying the workaround? Is not clear enough how to apply it. Thank you for your time. |
I just had this issue on Next.js 14.2.3 when using const nextConfig = {
transpilePackages: ["highlight.js"]
} |
I keep getting this regex error.
Nextjs 14.2.4 |
I have this exact error as well. |
im having same issue with highlight.js
|
this worked |
I had tried this but it didn't work for static export. |
oh that can be the case, im not using static export |
Bug report
Describe the bug
Reproduction: codesandbox.io/s/muddy-cookies-9jr6z?file=/pages/index.js
After upgrading to V 10.0.2 the ES2018
Unicode Property Escapes
feature is not working anymore. The same works perfectly till V 10.0.1 Not sure if it is due to the impact of #18759Expected behavior
Since the upgrade is not a major one, expecting the feature to work with out any issues.
System information
The text was updated successfully, but these errors were encountered: