Skip to content

Creating a reproducer does not work on stackblitz, for both JS/TS due to bad dependencyΒ #11615

@StefanWallin

Description

@StefanWallin

Have you read the Contributing Guidelines on issues?

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and 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

  1. Visit https://docusaurus.io/docs/playground
  2. Press either button on the stackblitz portion to create a repro
  3. In stackblitz it automatically runs yarn install && npm start which fails like the error above.

Expected behavior

A running docusaurus

Actual behavior

Yarn install failed due to bad dependency @types/[email protected]

Your environment

Self-service

  • I'd be willing to fix this bug myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its execution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions