-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Builds with esbuild-loader >= 2.17.0 are failing #6901
Comments
I was bisecting it a bit more on
why invalid?
So the new range is: evanw/esbuild@v0.14.3...v0.14.5 And most likely this PR: evanw/esbuild#1849 |
Hi, this is a duplicate of #6235. The culprit is the one that you discovered, and you can also see the linked esbuild issue evanw/esbuild#2037 for the actual cause. TL;DR: this is an esbuild bug and not something we can help with. However, we successfully worked around it by using ESM in SSR as well: docusaurus/website/docusaurus.config.js Lines 96 to 102 in 1efc6c6
|
I can confirm this works, thank you very much @Josh-Cena, have a great weekend. 💯 |
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
When using
esbuild-loader
with docusaurus, builds start failing ifesbuild-loader
>=v1.17.0
.Relates: #4765
Upstream commit range: privatenumber/esbuild-loader@v2.16.0...v2.17.0
(this is more of a tracking issue for users who are encountering this so they can discover it. Its most likely not an issue with docusaurus itself. If this is against the issue policies in this repo, feel free to close)
Reproducible demo
No response
Steps to reproduce
Repro:
npx create-docusaurus@latest my-website classic --typescript
npm install -D esbuild-loader
npm run build
Expected behavior
It works.
Actual behavior
Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=object&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
Your environment
Self-service
The text was updated successfully, but these errors were encountered: