question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

camelcase requirement causes uncaught exception error with version 1.1.0 of http-proxy-middleware

See original GitHub issue

Following the upgrade to v1.1.0 of http-proxy-middleware, my application started spamming uncaught exception errors during to an invalid regular expression: /[_.\- ]+([\p{Alpha}\p{N}_]|$)/:

Full error message:

2021-04-01 17:50:58.156 C | UNCAUGHT EXCEPTION: Invalid regular expression: /[_.\- ]+([\p{Alpha}\p{N}_]|$)/: Invalid escape
2021-04-01 17:50:58.157 C | SyntaxError: Invalid regular expression: /[_.\- ]+([\p{Alpha}\p{N}_]|$)/: Invalid escape

The invalid regular expression that this is complaining about results from the import of camelcase (v.6.2.0). The index.js of camelcase contains this function:

const postProcess = (input, options) => {
        return input.replace(/[_.\- ]+([\p{Alpha}\p{N}_]|$)/gu, (_, p1) => p1.toLocaleUpperCase(options.locale))
                .replace(/\d+([\p{Alpha}\p{N}_]|$)/gu, m => m.toLocaleUpperCase(options.locale));
};

client info

RHEL 6/7

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
lpbzcommented, Apr 11, 2021

@chimurai 1.1.1-alpha.1 was not working for me and actually caused my application to crash. I must’ve not called it correctly in the package.json. But http-proxy-middleware@1.1.1 worked for my application…everything looks great.

Thanks for taking care of this.

1reaction
jens-mauscommented, Apr 10, 2021

@jens-maus Would be great if you could give a try with http-proxy-middleware@1.1.1-alpha.1 to confirm the fix.

I just could test the latest 1.1.1 version and the issue is definitely fixed in that version. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Errors during install of angular-cli · Issue #1560 - GitHub
I'm trying to install the webpack-version. At first I uninstalled the beta-10 version: npm uninstall -g angular-cli npm cache clean npm install ...
Read more >
Disable check of camel case rule in eslint - Stack Overflow
I have a large JavaScript file with multiple eslint rule violations. I am trying to disable them and address them one at a...
Read more >
PH42501: IBM CICS Transaction Server for z/OS V5 support ...
Details are provided of open source components supplied with IBM WebSphere Application Server Liberty 21.0.0.12, in support of CICS Transaction ...
Read more >
http-proxy-middleware - npm
Node.js proxying made simple. Configure proxy middleware with ease for connect, express, browser-sync and many more. Powered by the popular ...
Read more >
Diff - plugins/checks - Google Git
Merge branch 'stable-3.1' into stable-3.2 * stable-3.1: Fix test due to change in Gerrit core ChecksSubmitRule.Module: Demote base class to AbstractModule ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found