-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
SyntaxError: Named export 'Minimatch' not found. #9935
Comments
Woops, let me take a look at that |
@JasonTame To clarify, do you get these errors when you deploy an app? |
The stackblitz doesn't use Vercel. I went ahead and added it and deployed the app and did not receive an issue. Minimatch is not used at runtime so that should be part of your built code. Can you explain more or update the example? Thanks. |
@matthewp It builds and deploys fine, but when I access a route that is rendered via a serverless function, it bombs out when on v7.1.0. The full error displayed is:
I'm finding it challenging to reproduce the error, either locally or on a fresh astro install launched on Vercel, but I will keep trying today and revert back if I manage to do so. |
I see there was an issue raised on the minimatch repo that had the same error message. The suggestion was to run
Perhaps |
It's highly possible that that's the one picked up by the runtime. I raised an issue in the |
@JasonTame did you try updating your lockfile? Maybe you have an old version of something. |
Thanks @ematipico @matthewp - adding |
That's good to know but you really shouldn't need to add dependencies that you don't directly depend on. |
100% - adding it as a dev dependency was a test to see if that was indeed the problem. I'll keep |
I had the same problem, which I also solved by adding the dependency |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
After updating the
@astro/vercel
package to 7.1.0, I started getting 500 errors on Vercel with the error message:Rolling back to 7.0.0 resolved the issue for now.
What's the expected result?
No 500 errors
Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-9dype5
Participation
The text was updated successfully, but these errors were encountered: