use local variables - #1913
Draft
daniel-graham-amplitude wants to merge 1 commit into
Draft
Conversation
daniel-graham-amplitude
marked this pull request as draft
July 28, 2026 23:08
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Conflicting babel plugin declarations
- Removed the leftover workspace entry from devDependencies so the babel plugin is only declared as 0.1.1 under dependencies, matching the lockfile.
Or push these changes by commenting:
@cursor push 2e113cf242
Preview (2e113cf242)
diff --git a/examples/react-native/expo-app/package.json b/examples/react-native/expo-app/package.json
--- a/examples/react-native/expo-app/package.json
+++ b/examples/react-native/expo-app/package.json
@@ -27,7 +27,6 @@
"react-native-web": "0.18.10"
},
"devDependencies": {
- "@amplitude/babel-plugin-autocapture-transformer": "workspace:*",
"@babel/core": "^7.20.5",
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
"@types/react": "~18.0.26",You can send follow-ups to the cloud agent here.
Reviewed by Cursor Bugbot for commit c19b447. Configure here.
| "@amplitude/analytics-react-native": "workspace:*", | ||
| "@amplitude/plugin-network-capture-browser": "workspace:*", | ||
| "@amplitude/analytics-react-native": "1.6.8", | ||
| "@amplitude/babel-plugin-autocapture-transformer": "0.1.1", |
There was a problem hiding this comment.
Conflicting babel plugin declarations
High Severity
@amplitude/babel-plugin-autocapture-transformer is declared as 0.1.1 under dependencies and still as workspace:* under devDependencies. The lockfile only records the published specifier, so package.json and pnpm-lock.yaml disagree and installs with a frozen lockfile can fail or resolve unpredictably.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit c19b447. Configure here.
size-limit report 📦
|
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.



Summary
Checklist
Note
Low Risk
Example-app-only dependency and config changes; no production SDK or library code modified.
Overview
The expo-app example no longer depends on monorepo
workspace:*links for@amplitude/analytics-react-nativeand the network-capture plugin. It pins@amplitude/analytics-react-native@1.6.8and@amplitude/babel-plugin-autocapture-transformer@0.1.1from npm, with an updatedpnpm-lock.yamlreflecting the published dependency tree (including transitive@amplitude/plugin-network-capture-browser).App.tsxdrops the explicit network-capture plugin import and setsautocapture.networkTrackingtofalseinstead of a config object withignoreHosts.babel.config.jsrunstransform-inline-environment-variablesbefore the autocapture Babel plugin so env vars are inlined in the right order.pnpm-workspace.yamladdsminimumReleaseAgeExcludefor@amplitude/*so those scoped packages can install without pnpm’s minimum release age delay.Reviewed by Cursor Bugbot for commit c19b447. Bugbot is set up for automated code reviews on this repo. Configure here.