Repository navigation
Labels
bugAn error in the Docusaurus core causing instability or issues with its execution
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Prerequisites
- I'm using the latest version of Docusaurus.
- I have tried the
npm run clearoryarn clearcommand. - I have tried
rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages. - I have tried creating a repro with https://new.docusaurus.io.
- I have read the console error message carefully (if applicable).
Description
When trying to setup a repro on stackblitz for docusaurus I get a dependency issue during initial package install.
Looking at https://www.npmjs.com/package/@types/gtag.js?activeTab=versions I notice that @types/[email protected] is recommended for typescript 4.1 or 4.2.
For later versions of typescript, then version 0.0.20 is recommended for @types/gtag.js
This is reproducible clicking onwards from https://docusaurus.io/docs/playground on any of the two stackblitz buttons
- Stackblitz Javascript
- Stackblitz Typescript
My error:
~/projects/jvmikabmon.github
❯ yarn install && npm start
yarn install v1.22.19
[1/5] 🔍 Validating package.json...
[2/5] 🔍 Resolving packages...
[3/5] 🚚 Fetching packages...
error An unexpected error occurred: "EIO: '@types/[email protected]' not found in cache, try running install again".
info If you think this is a bug, please open a bug report with the information provided in "/home/projects/jvmikabmon.github/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.Reproducible demo
No response
Steps to reproduce
- Visit https://docusaurus.io/docs/playground
- Press either button on the stackblitz portion to create a repro
- In stackblitz it automatically runs
yarn install && npm startwhich fails like the error above.
Expected behavior
A running docusaurus
Actual behavior
Yarn install failed due to bad dependency @types/[email protected]
Your environment
- Public site URL: https://stackblitz.com/github/facebook/docusaurus/tree/main/examples/classic-typescript?file=README.md
- Docusaurus version used: 3.9.2
- Environment name and version (e.g. Chrome 89, Node.js 16.4): Stackblitz, Brave Browser 1.84.141
- Operating system and version (e.g. Ubuntu 20.04.2 LTS): Mac OS Tahoe 26.1
Self-service
- I'd be willing to fix this bug myself.
Metadata
Metadata
Assignees
Labels
bugAn error in the Docusaurus core causing instability or issues with its execution
Activity
slorber commentedon Dec 22, 2025
I also get this
@types/gtag.jsdependency on StackBlitz, for unknown reasons.Loading the StackBlitz url on another Chrome profile (new one, or guest) would not produce the error, so the issue seems to be related to my own profile Chrome profile.
I tried to cleanup all caches but I've been having this issue for a long time and couldn't fix it, so I always open the StackBlitz sandbox in a separate Chrome profile.
Not sure who I can ask at StackBlitz to take a look 🙏 @EricSimons @SamVerschueren @AriPerkkio any idea what could cause this issue, and where's the place to report this properly?
slorber commentedon Apr 7, 2026
@fresh3nough for me this upgrade did not work I still get the error with Docusaurus v3.10
See:
fresh3nough commentedon Apr 8, 2026
@slorber looking into this now
fresh3nough commentedon Apr 8, 2026
@slorber looks like a is a StackBlitz WebContainer cache corruption issue
slorber commentedon Apr 8, 2026
That's also what I suspected, but I have no idea how to fix it. I tried everything locally, and only opening the sandbox in a new Chrome profile or another browser works for me, but I'm unable to get it to work with my main Chrome session.
fix(playground): single StackBlitz install + document WebContainer EI…