Open mattstobbs opened 2 years ago
@mattstobbs rolling back to a prev version of esbuild worked for me. Not sure why, but I hope to find an explanation somewhere.
Rolled back based on a issue I found here: https://github.com/hashicorp/next-mdx-remote/pull/199
My current package.json esbuild and mdx-bundler
"esbuild": "^0.12.9",
"mdx-bundler": "^8.0.1",
Hmm that seems to successfully build but now I'm getting 500 errors. At least it's a different error to dig into now, thanks! 😅
@pakatagoh
"esbuild": "^0.12.9", "mdx-bundler": "^8.0.1",
This seemed to have fixed my issue magically, I was struggling with this for the past two days.
The fix was adding "esbuild": "^0.19.5", for me
mdx-bundler
version: 8.0.1node
version: 14.xnpm
version:Relevant code or config
Code from the example in the README
What you did:
Created a Remix project with MDXBunder and deployed it to vercel
What happened:
It worked great when running locally, but when it is deployed to vercel, it gives the error
See here: https://mdx-bundler-demo.vercel.app/
Reproduction repository:
https://github.com/mattstobbs/mdx-bundler-demo
Problem description:
Vercel doesn't seem to be installing the esbuild dependency correctly. I appreciate this isn't directly connected to a problem with mdx-bundler but I thought I'd ask to see if anyone had seen this before or knew of a way to get around this.
I've also seen other issues with similar errors but the solutions in those issues (usually to downgrade the version of esbuild) don't seem to work in this case.
Thanks!
Suggested solution: