News for hackers. Stuff that matters.
Re:Spotlight: Sentry for Development by lol768 on Wednesday December 06, 2023 @06:18PM (#38550812)
Hey David! Few questions: I'm slightly stuck with the Vite plugin

Currently getting this when trying to do an npm run dev:

    [plugin externalize-deps] No known conditions for "./vite-plugin" entry in "@spotlightjs/sidecar" package
      The plugin "externalize-deps" was triggered by this import
    
        vite.config.ts:7:29:
          7 │ import spotlightSidecar from '@spotlightjs/sidecar/vite-plugin';
Should I be telling externalize-deps to leave it alone somehow?

Also, I note the PHP SDK has gotten support for Spotlight - are there plans to do the same for the .NET SDK too?

Re:Spotlight: Sentry for Development by brungarc on Wednesday December 06, 2023 @07:03PM (#38551178)
Thanks for asking, created a ticket for .NET support here: https://github.com/getsentry/sentry-dotnet/issues/2955

I'm actually looking forward to it, I wanted to try on NuGet Trends but stopped on the first hurdle: https://github.com/dotnet/nuget-trends/pull/247

Re:Spotlight: Sentry for Development by zeeg on Wednesday December 06, 2023 @06:31PM (#38550929)
Let me circle back on the Vite issue. Bundles are the biggest challenge when doing this turns out :)

Would you mind opening a GitHub so we can circle back there?

Regarding .NET - it’s coming to all Sentry SDKs (even mobile!). They were looking at .NET already but I’m not sure off hand what prevented its release. I’d expect our other core languages have full support in the next 60 days.

Re:Spotlight: Sentry for Development by lol768 on Sunday December 10, 2023 @12:16PM (#38593079)
> Let me circle back on the Vite issue. Bundles are the biggest challenge when doing this turns out :)

>

> Would you mind opening a GitHub so we can circle back there?

For anyone else in this boat, I got it working by adding "type": "module" to my package.json file. Getting Tailwind to play nice with this was a bit of a battle, and I didn't manage to figure out how to import the defaultTheme properly, but Spotlight works flawlessly and the Vite plugin auto-starts the sidecar.