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

@vercel/routing-utils fails with Error: Cannot find module '@vercel-internals/path-to-regexp' since 5.0.3 #13024

Open
ascorbic opened this issue Feb 6, 2025 · 5 comments

Comments

@ascorbic
Copy link

ascorbic commented Feb 6, 2025

In #12962, routing-utils was changed to use an internal version of path-to-regexp. However routing-utils is not bundled when being built, so at runtime the internal package is missing. This causes the package to break when used by packages outside of this monorepo. This includes @astrojs/vercel.

Thanks @blaine-arcjet for the report: #12962 (comment)

@ascorbic ascorbic changed the title routing-utils fails with Error: Cannot find module '@vercel-internals/path-to-regexp' since 5.0.3 @vercel/routing-utils fails with Error: Cannot find module '@vercel-internals/path-to-regexp' since 5.0.3 Feb 6, 2025
@trek
Copy link
Contributor

trek commented Feb 6, 2025

Thanks! We'll look into it today.

@trek
Copy link
Contributor

trek commented Feb 6, 2025

In the meantime can you pin to a previous version?

@ascorbic
Copy link
Author

ascorbic commented Feb 6, 2025

@trek yes, we released @astrojs/[email protected] earlier today, which pins it

@trek
Copy link
Contributor

trek commented Feb 6, 2025

@ascorbic oh good! We're using this for some internal testing to be able to upgrade a major version. We'll likely remove this package once we've gathered some data.

@EndangeredMassa
Copy link
Contributor

@ascorbic the @vercel/routing-utils package has been updated with a fix for this issue. Can you try the latest version and let me know if you still see any problems?

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