Skip to content

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

Description

@StefanWallin

Have you read the Contributing Guidelines on issues?

Prerequisites

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.

Activity

  1. added
    bug
    status: needs triage
    on Dec 11, 2025
  2. slorber commented on Dec 22, 2025

    @slorber
    Collaborator

    I also get this @types/gtag.js dependency 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?

  3. removed
    status: needs triage
    on Dec 22, 2025
  4. reopened this on Apr 7, 2026
  5. fresh3nough commented on Apr 8, 2026

    @fresh3nough
    Contributor

    @slorber looking into this now

  6. fresh3nough commented on Apr 8, 2026

    @fresh3nough
    Contributor

    @slorber looks like a is a StackBlitz WebContainer cache corruption issue

  7. slorber commented on Apr 8, 2026

    @slorber
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions