-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Fatal Javascript invalid size error #8603
Comments
So to clarify: you were able to reproduce this issue by just using Yarn v3, without changing any code in the init template? |
First I want to say that the Yarn setup is not recommended: you should install v3 locally in
|
I check in a yarn release or use corepack normally, but what's the reasoning behind not using yarn 3 as your default?
This was my experience too except it freezes after webpack compilation completes (you can still cancel during) |
Update: I found this issue: yarnpkg/berry#4525 I tested docusaurus with webpack cache disabled via a plugin like so: const disableWebpackCachePlugin = () => ({
name: 'disableWebpackCache',
configureWebpack() {
return { cache: false };
}
}) And it works. So the issue appears to be with webpack cache and yarn 3's pnpm linker. It appears a potential fix for this has been merged into Yarn: yarnpkg/berry#4542 but not yet released under an official version. |
Can confirm that using |
Great, glad you found the reason :) |
For anyone else who has this problem and finds this issue, you may find yourself stuck between a rock and a hard place because even though Yarn 4 RC has a fix for this issue, if you use Instead I found a workaround (it's not elegant I know) using the following
This removes the circular symlink that gets created each time To make matters worse, |
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
yarn start
inside of a docusaurus project installed with yarn 3 using the pnpm linkage mode triggers the following error:I have also seen this other issue but they were unable to make a reproduction: #8421
Reproducible demo
https://github.com/georeith/docusuraus-issue-fatal-size
I created this reproduction by:
yarn 3
and configuring itslinkageMode
topnpm
npx create-docusaurus@latest site classic --typescript -p yarn
(reproducible without TypeScript too)
Steps to reproduce
yarn
yarn start
Untitled.2.mp4
Expected behavior
The site should not crash
Actual behavior
The site crashes
Your environment
Self-service
The text was updated successfully, but these errors were encountered: