Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tknickman/vercel-analytics-repro
https://github.com/tknickman/vercel-analytics-repro
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tknickman/vercel-analytics-repro
- Owner: tknickman
- Created: 2024-01-16T21:58:23.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-16T22:01:32.000Z (10 months ago)
- Last Synced: 2024-10-05T12:43:40.409Z (about 1 month ago)
- Language: TypeScript
- Size: 83 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vercel analytics and speed-insights reproduction.
## Problem
1. Vercel analytics and speed-insights import react, but don't explicitly depend on it in package.json.
2. When using pnpm workspaces, these packages are unable to find react, due to the way pnpm structures dependencies.
3. This can be fixed via:
1. Using pnpm's `shamefully-hoist` option, which will hoist all dependencies to the root of the workspace.
2. Specifying react in the pnpm hoist pattern, which will hoist react to the root of the workspace.
3. Adding react as a peer dependency of the package