-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Open
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executionstatus: needs triageThis issue has not been triaged by maintainersThis issue has not been triaged by maintainers
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/gtag.js@0.0.12 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/gtag.js@0.0.12' 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/gtag.js@0.0.12
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 executionAn error in the Docusaurus core causing instability or issues with its executionstatus: needs triageThis issue has not been triaged by maintainersThis issue has not been triaged by maintainers