fix(create-docusaurus): update @types/gtag.js to 0.0.20#11770
Merged
slorber merged 2 commits intofacebook:mainfrom Mar 5, 2026
Merged
fix(create-docusaurus): update @types/gtag.js to 0.0.20#11770slorber merged 2 commits intofacebook:mainfrom
slorber merged 2 commits intofacebook:mainfrom
Conversation
Update @types/gtag.js from ^0.0.12 to ^0.0.20 in the google-gtag plugin and add yarn resolutions in example templates to fix StackBlitz install failures caused by the outdated @types/gtag.js@0.0.12 not being available in StackBlitz's package cache. Fixes facebook#11615
|
All alerts resolved. Learn more about Socket for GitHub. This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
✅ [V2]Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
slorber
reviewed
Mar 5, 2026
Collaborator
slorber
left a comment
There was a problem hiding this comment.
Thanks
Glad to hear it fixes the Stackblitz issue. Curious though, how can I verify this?
Can you please revert the changes to the examples?
Contributor
Author
|
steps to reproduce added as requested @slorber |
Collaborator
|
Thanks |
Contributor
Author
|
happy hacking |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps
@types/gtag.jsfrom 0.0.12 to 0.0.20 (latest) in the TypeScript template + yarn.lock.Fixes #11615
Steps to Reproduce the Issue (AI-assisted)
yarn install && npm startyarn installfails with:"EIO: @types/gtag.js@0.0.12 not found in cache, try running install again"The root cause is that
@types/gtag.js@0.0.12targets TypeScript 4.1/4.2 and is no longer available in the StackBlitz cache. Updating to0.0.20(the version recommended for modern TypeScript) resolves this.How to Verify the Fix
yarn install && npm startcompletes successfully without the@types/gtag.jscache errorTest Plan
npx create-docusaurus my-site classic --typescriptcd my-site && yarn install(succeeds)yarn startworks