-
Notifications
You must be signed in to change notification settings - Fork 55
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
wrong version of path-to-regexp bundled - solutions? #126
Comments
It's possible you have DedupePlugin running too aggressively. Also check that your module tree looks right – you may just want to nuke I can't really speak to how to make webpack do the right thing in your case specifically beyond the suggestions above. |
I have the same issue here! I cannot make a simple regex path to work. I do the exact same thing as in the doc |
Try explicitly installing path-to-regexp@^1 as a top-level dependency. That should make webpack do the right thing. |
Yeah I did set ^2.0.0 as an explicit dependency... I don't know if the issue is related to that because there's no error. The route I set is just not recognized. Here's my definition:
Thanks. |
You need to do |
The |
Oh, and it should be Just follow the path-to-regexp docs. |
Ok! Now we're talking. I guess it may be a good idea to update the doc consequently. Thanks @taion ! |
Oh, oops. |
Hi,
We're using express with found and found-relay. Currently we get a message concerning an outdated path-to-regexp lib. The root cause of this issue is that express uses version 0.1.7 while found uses version 1.7.
Our webpack seems to bundle the 0.1.7 EVERY TIME. Has somebody encountered this issue already and has a solution to it?
We have already tried to explicitly add path-to-regexp@1.7 as a dependency to the project, but this fix does not seem to work 100% of the time
thx
The text was updated successfully, but these errors were encountered: