vite-plugin-sentry icon indicating copy to clipboard operation
vite-plugin-sentry copied to clipboard

Failed to resolve import "virtual:vite-plugin-sentry/sentry-config" from "src/main.tsx". Does the file exist?

Open dawidholisz opened this issue 2 years ago • 4 comments

I have similar issue like here https://github.com/ikenfin/vite-plugin-sentry/issues/81

image

I am using version 1.1.5 and vite 2.9.15 My import:

import ReactDOM from "react-dom/client";
import { BrowserTracing } from "@sentry/tracing";
import * as Sentry from "@sentry/react";
import "virtual:vite-plugin-sentry/sentry-config";

dawidholisz avatar Sep 27 '22 09:09 dawidholisz

the plugin doesn't seem to support [email protected]

amilajack avatar Sep 28 '22 16:09 amilajack

Hi! I'm trying to reproduce with vite 2.9.15, but no luck - it works for me🤔

Can someone please share reproducible example repo?

ikenfin avatar Oct 12 '22 13:10 ikenfin

Hi! I'm trying to reproduce with vite 2.9.15, but no luck - it works for methinking

Can someone please share reproducible example repo?

Fresh Vite3 CLI Setup (typescript, vue, pinia, eslint, prettier) is failing as well. Having the same issue here

pleqtron avatar Nov 04 '22 13:11 pleqtron

Hi the problem is happen for me also when there is no authToken, org or project in sentry config specified because i have 3 env files production, development and test i just added this config on production env file

youssefSamih avatar Nov 14 '22 12:11 youssefSamih