Skip to content
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

"Invalid regular expression: /[\p{Lu}]/: Invalid escape" after updating to version 6.2.1 #94

Closed
vinod-philip opened this issue Feb 14, 2022 · 2 comments

Comments

@vinod-philip
Copy link

vinod-philip commented Feb 14, 2022

I am using Node v12.22.3 and npm 6.14.13. As soon I upgrade to 6.2.1 I am getting const UPPERCASE = /[\p{Lu}]/u;
invalid expression error on the build, but it works with version 6.2.0. Is there anything I am missing here? Please Verify. thanks

@sindresorhus
Copy link
Owner

That is a problem with your build system, not this package.

@Dozalex
Copy link

Dozalex commented Oct 24, 2023

For those who have encountered the same problem while supporting older versions of browsers using Babel and Webpack, you should add this package to the rule for parsing it with Babel

{
  test: /\.(tsx?|js)$/,
  exclude: /node_modules\/(?!camelcase)/,
  use: [
    { loader: 'babel-loader' },
  ],
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants