-
-
Notifications
You must be signed in to change notification settings - Fork 66
fix(examples/react/start): make react-start example compatible with n… #329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- | ||
| "start": patch | ||
| --- | ||
|
|
||
| Make react-start example compatible with npm-based sandboxes | ||
|
|
||
| Replace the 'workspace:*' dependency reference with a fixed version (^0.4.0) for @tanstack/devtools-event-client in the react/start example. | ||
|
|
||
| The workspace:* reference was incompatible with npm-based sandboxes like StackBlitz and CodeSandbox, causing pnpm install failures with 'ERR_PNPM_OUTDATED_LOCKFILE' error. | ||
|
|
||
| This change allows the example to be used in cloud-based development environments while maintaining version compatibility. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,7 +10,7 @@ | |
| }, | ||
| "dependencies": { | ||
| "@tailwindcss/vite": "^4.0.6", | ||
| "@tanstack/devtools-event-client": "workspace:*", | ||
| "@tanstack/devtools-event-client": "^0.4.0", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Verify `@tanstack/devtools-event-client` version 0.4.0 exists and check other examples
echo "=== Checking if version 0.4.0 exists on npm ==="
npm view `@tanstack/devtools-event-client` versions --json | jq -r '.[]' | grep "^0\.4\.0$"
echo -e "\n=== Finding all examples using workspace references for this package ==="
fd -e json -x grep -l "devtools-event-client" {} \; | xargs grep -H "devtools-event-client.*workspace"Repository: TanStack/devtools Length of output: 377 Apply the same dependency fix to The version 🤖 Prompt for AI Agents |
||
| "@tanstack/react-devtools": "^0.10.2", | ||
| "@tanstack/react-router": "^1.132.0", | ||
| "@tanstack/react-router-devtools": "^1.132.0", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: TanStack/devtools
Length of output: 1174
🏁 Script executed:
Repository: TanStack/devtools
Length of output: 797
🏁 Script executed:
Repository: TanStack/devtools
Length of output: 654
🏁 Script executed:
Repository: TanStack/devtools
Length of output: 280
Remove this changeset—it targets a private package that will not be published.
The
"start"package is marked"private": trueinexamples/react/start/package.json. Changesets are for managing versions of publishable npm packages. Private example packages do not require changesets, as they are never published and don't need version tracking through the release process. Keeping this changeset could cause confusion and incorrect behavior in the release workflow.🧰 Tools
🪛 LanguageTool
[uncategorized] ~7-~7: “React” is a proper noun and needs to be capitalized.
Context: ...
@tanstack/devtools-event-clientin the react/start example. The workspace:* referen...(A_GOOGLE)
🤖 Prompt for AI Agents