Comments (6)
Hey just here to add some context. We had some issues with jest & some types. There is a PR open currently to scrap jest completely and move to vitest blitz-js/blitz#3985
from analytics.
@dglsparsons I share your frustration, unfortunately. 😞 It looks like something very specific to Blitz. @dillonraphael Thanks for jumping in and adding some context 🙇.
I guess I'll close this ticket for the time being 🙏🏻
from analytics.
Hya 👋🏻 @dglsparsons - Yes, It's a Blitz starter indeed. Can you please try the starter?
from analytics.
For me it was a matter of adding this to "jest"
config in package.json
:
"jest": {
"moduleNameMapper": {
"@vercel/analytics/react": "identity-obj-proxy"
}
},
from analytics.
Hey @bitabs, thanks for raising this. We'll get investigating! I suspect it's something to do with how the module is packaged...
Are you just using a blitzjs starter? Is there a minimal repro you can share? I'm not overly familiar with blitz :D
from analytics.
Hey @bitabs! Sorry, but I'm struggling to reproduce this - I'm being frustratingly blocked on this Blitz issue which means I'm struggling to get any tests to work at all in Blitz.
I was, however, able to set up a brand new NextJS project based on the NextJS Jest Example. Adding Analytics to this in either the _app.tsx file, or in a specific page gave me no issues at all though - and worked exactly as you'd expect.
It seems like the issue is with the Blitz jest config because of this. However, since I'm unable to reproduce I can't confirm this.
Sorry to ask again, but I don't suppose you are able to share any reproduction?
from analytics.
Related Issues (20)
- Error 400 when using analytics/server track in server actions HOT 2
- Vercel build failed with Turborepo and multiple apps deployed HOT 5
- Vercel Analytics Endpoints HOT 1
- Docs: Specify if `track` runs in development mode or not HOT 1
- Page changes are no longer tracked in SvelteKit 2 HOT 9
- Feature Request: Allow nonce as optional prop in analytics component for content security policy HOT 1
- Integration with Docusaurus HOT 1
- Module resolution warnings under Yarn PnP: `Unable to resolve path to module '@vercel/analytics/react'.eslintimport/no-unresolved` HOT 5
- City-Level analytics HOT 3
- CJS files are missing in 1.2.0 HOT 10
- Feature request: Exports HOT 3
- Cannot install the latest version of `@vercel/analytics` with `[email protected]` HOT 2
- Vercel Analytics being blocked by AdBlockers HOT 1
- SvelteKitError: Not found: /_vercel/insights/script.js with playwright/test HOT 2
- Use process.env.ASSET_PREFIX when sending tracking data #63 HOT 1
- Version Compatibility
- CORS errors HOT 1
- script.js doesn't load with Next.js Dyamic Routes? [Error on build only] HOT 2
- unclear how to view and export custom events + properties? HOT 1
- Access-Control-Allow-Origin header won't attached when reverse-proxying
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from analytics.