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
[Bug]: e.charCodeAt is not a function with @babel/plugin-proposal-unicode-property-regex #13815
Comments
There is a bundling issue in I can not reproduce |
Unfortunately I cannot readily provide the code as this is a work project. However, the snippet was taken from this function: export default function capitalize(s: string): string {
return s.toLocaleLowerCase().replace(/(^|\P{L})\w/gu, c => c.toLocaleUpperCase());
} The babel config is attached in the issue comment, and there is no specific Webpack configuration in |
Hi @sin-ack! This issue is missing some important information we'll need to be able to reproduce this issue. Please understand that we receive a high volume of issues, and there are only a limited number of volunteers that help maintain this project. The easier it is for us to decipher an issue with the info provided, the more likely it is that we'll be able to help. Please make sure you have the following information documented in this ticket:
Please provide either a link to the problem via the |
Maybe related: mathiasbynens/regexpu-core#13 (comment) Do you have multiple versions of |
Sorry, I forgot about this issue. Will provide a minimal repro in a few days. |
💻
How are you using Babel?
Other (Next.js, Gatsby, vue-cli, ...)
Input code
There's also this, but I think the necessary Unicode data is missing because it fails with
repl.jsx: Unknown property: L
:https://babeljs.io/repl/#?browsers=defaults%2C%20not%20ie_mob%2011&build=&builtIns=false&corejs=3.6&spec=false&loose=false&code_lz=M4OgLg9gMhDGCGAbApjA7sgTgYXsZAFAJQibIAOi8shA9AQHoA-AOgAoDeUAvkS2rQDmAVwA0AAljiAvAD5J4aHCTIAquXJZc-YkQDcAKCA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=env%2Creact%2Cstage-2&prettier=false&targets=&version=7.15.7&externalPlugins=%40babel%2Fplugin-proposal-unicode-property-regex%407.14.5&assumptions=%7B%7D
Configuration file name
.babelrc
Configuration
Current and expected behavior
Current behavior
The following error when the compiled code is run:
Expected behavior
To not crash. The example code works in Node 16.
Environment
Possible solution
Not quite sure, since I can't get compiled code output on the playground.
Additional context
No response
The text was updated successfully, but these errors were encountered: