Build error using Server Insights

I integrated Vercel Speed Insights to my site until I got this error. My site is in NextJS. Not sure why I am getting this svelte deps error.

I removed speed insights for now. I’d love to put back that feature since it really helps analyze performance of my app.

Has anyone encountered this? How did you solve it?

Thanks!

I couldn’t replicate this error with my test project. My first thought is the framework picker is switched to SvelteKit instead of Next.js for you in the docs and you ended up with import { injectSpeedInsights } from '@vercel/speed-insights/sveltekit'; instead of import { SpeedInsights } from '@vercel/speed-insights/next';.

If that’s not it, I’m happy to take a closer look. Would you be able to share a minimal reproducible example or code snippets to let me see how your project was set up?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.