Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vite 5 support #9624

Closed
3 tasks done
endigma opened this issue Nov 21, 2023 · 6 comments
Closed
3 tasks done

Vite 5 support #9624

endigma opened this issue Nov 21, 2023 · 6 comments
Labels
Package: sveltekit Issues related to the Sentry SvelteKit SDK Stale Type: Bug

Comments

@endigma
Copy link

endigma commented Nov 21, 2023

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/sveltekit

SDK Version

7.81.0

Framework Version

Svelte 4.2.7 & SvelteKit 1.27.6

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

  1. Install SvelteKit w/ Vite 5 (demo app works fine, upgrade vite)
  2. Install sentry with wizard
  3. Attempt build
  4. Complete failure

Expected Result

Working

Actual Result


> sentry-sk-v5-repro@0.0.1 build /home/user/sentry-repro
> vite build


vite v5.0.2 building SSR bundle for production...
[sentry-vite-plugin] Info: Sending error and performance telemetry data to Sentry.
[sentry-vite-plugin] Info: To disable telemetry, set `options.telemetry` to `false`.
transforming...
"confetti" is imported from external module "@neoconfetti/svelte" but never used in "src/routes/sverdle/+page.svelte".
✓ 122 modules transformed.
rendering chunks...

vite v5.0.2 building for production...
[sentry-vite-plugin] Info: Sending error and performance telemetry data to Sentry.
[sentry-vite-plugin] Info: To disable telemetry, set `options.telemetry` to `false`.
transforming...
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+sveltekit@7.81.1_@sveltejs+kit@1.27.6_svelte@4.2.7/node_modules/@sentry/sveltekit/esm/vite/autoInstrument.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+sveltekit@7.81.1_@sveltejs+kit@1.27.6_svelte@4.2.7/node_modules/@sentry/sveltekit/esm/vite/autoInstrument.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+sveltekit@7.81.1_@sveltejs+kit@1.27.6_svelte@4.2.7/node_modules/@sentry/sveltekit/esm/vite/detectAdapter.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+sveltekit@7.81.1_@sveltejs+kit@1.27.6_svelte@4.2.7/node_modules/@sentry/sveltekit/esm/vite/detectAdapter.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "child_process" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+sveltekit@7.81.1_@sveltejs+kit@1.27.6_svelte@4.2.7/node_modules/@sentry/sveltekit/esm/vite/sourceMaps.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+sveltekit@7.81.1_@sveltejs+kit@1.27.6_svelte@4.2.7/node_modules/@sentry/sveltekit/esm/vite/sourceMaps.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+sveltekit@7.81.1_@sveltejs+kit@1.27.6_svelte@4.2.7/node_modules/@sentry/sveltekit/esm/vite/sourceMaps.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+sveltekit@7.81.1_@sveltejs+kit@1.27.6_svelte@4.2.7/node_modules/@sentry/sveltekit/esm/vite/svelteConfig.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+sveltekit@7.81.1_@sveltejs+kit@1.27.6_svelte@4.2.7/node_modules/@sentry/sveltekit/esm/vite/svelteConfig.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "url" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+sveltekit@7.81.1_@sveltejs+kit@1.27.6_svelte@4.2.7/node_modules/@sentry/sveltekit/esm/vite/svelteConfig.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/utils.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/utils.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "url" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/requestdata.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/module.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "os" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/client.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "http" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/transports/http.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "https" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/transports/http.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "stream" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/transports/http.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "url" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/transports/http.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "zlib" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/transports/http.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "child_process" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/anr/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/integrations/modules.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/integrations/modules.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/integrations/contextlines.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "child_process" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/integrations/context.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/integrations/context.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "os" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/integrations/context.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/integrations/context.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "node:fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/magicast@0.2.8/node_modules/magicast/dist/index.mjs". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/sorcery@0.11.0/node_modules/sorcery/dist/sorcery.es6.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "url" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/integrations/utils/http.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "net" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "tls" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "url" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/https-proxy-agent@5.0.1/node_modules/https-proxy-agent/dist/agent.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "domain" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/async/domain.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "async_hooks" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/async/hooks.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "crypto" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/anr/websocket.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "events" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/anr/websocket.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "http" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/anr/websocket.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "url" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/anr/websocket.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "node:fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/magicast@0.2.8/node_modules/magicast/dist/shared/magicast.0078b97f.mjs". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/recast@0.23.4/node_modules/recast/main.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/sander@0.5.1/node_modules/sander/dist/sander.es.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/sander@0.5.1/node_modules/sander/dist/sander.es.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "events" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/agent-base@6.0.2/node_modules/agent-base/dist/src/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "os" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/recast@0.23.4/node_modules/recast/lib/util.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+bundler-plugin-core@0.6.1/node_modules/@sentry/bundler-plugin-core/dist/esm/index.mjs". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+bundler-plugin-core@0.6.1/node_modules/@sentry/bundler-plugin-core/dist/esm/index.mjs". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "os" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+bundler-plugin-core@0.6.1/node_modules/@sentry/bundler-plugin-core/dist/esm/index.mjs". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "crypto" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+bundler-plugin-core@0.6.1/node_modules/@sentry/bundler-plugin-core/dist/esm/index.mjs". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "tty" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/mkdirp@0.5.6/node_modules/mkdirp/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/mkdirp@0.5.6/node_modules/mkdirp/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/rimraf@2.7.1/node_modules/rimraf/rimraf.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/rimraf@2.7.1/node_modules/rimraf/rimraf.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/graceful-fs.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "stream" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/legacy-streams.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "constants" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/graceful-fs@4.2.11/node_modules/graceful-fs/polyfills.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/find-up@5.0.0/node_modules/find-up/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/unplugin@1.0.1/node_modules/unplugin/dist/index.mjs". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/unplugin@1.0.1/node_modules/unplugin/dist/index.mjs". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "url" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/unplugin@1.0.1/node_modules/unplugin/dist/index.mjs". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "events" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/glob@7.2.3/node_modules/glob/glob.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/glob@7.2.3/node_modules/glob/glob.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+cli@2.21.5/node_modules/@sentry/cli/js/helper.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "child_process" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/@sentry+cli@2.21.5/node_modules/@sentry/cli/js/helper.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/glob@7.2.3/node_modules/glob/sync.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/glob@7.2.3/node_modules/glob/common.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/glob@7.2.3/node_modules/glob/common.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "url" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/glob@9.3.2/node_modules/glob/dist/mjs/glob.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/locate-path@6.0.0/node_modules/locate-path/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/locate-path@6.0.0/node_modules/locate-path/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/path-exists@4.0.0/node_modules/path-exists/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/minimatch@3.1.2/node_modules/minimatch/minimatch.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "events" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/chokidar@3.5.3/node_modules/chokidar/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/chokidar@3.5.3/node_modules/chokidar/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/chokidar@3.5.3/node_modules/chokidar/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/webpack-virtual-modules@0.5.0/node_modules/webpack-virtual-modules/lib/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/old.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/fs.realpath@1.0.0/node_modules/fs.realpath/old.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/chokidar@3.5.3/node_modules/chokidar/lib/nodefs-handler.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/chokidar@3.5.3/node_modules/chokidar/lib/nodefs-handler.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/chokidar@3.5.3/node_modules/chokidar/lib/constants.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "os" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/chokidar@3.5.3/node_modules/chokidar/lib/constants.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "constants" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/webpack-virtual-modules@0.5.0/node_modules/webpack-virtual-modules/lib/virtual-stats.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/chokidar@3.5.3/node_modules/chokidar/lib/fsevents-handler.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/chokidar@3.5.3/node_modules/chokidar/lib/fsevents-handler.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/path-scurry@1.10.1/node_modules/path-scurry/dist/mjs/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "url" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/path-scurry@1.10.1/node_modules/path-scurry/dist/mjs/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/path-scurry@1.10.1/node_modules/path-scurry/dist/mjs/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs/promises" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/path-scurry@1.10.1/node_modules/path-scurry/dist/mjs/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "fs" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/readdirp@3.6.0/node_modules/readdirp/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "stream" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/readdirp@3.6.0/node_modules/readdirp/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/readdirp@3.6.0/node_modules/readdirp/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "os" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "events" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/minipass@4.2.8/node_modules/minipass/index.mjs". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "stream" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/minipass@4.2.8/node_modules/minipass/index.mjs". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "string_decoder" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/minipass@4.2.8/node_modules/minipass/index.mjs". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/is-binary-path@2.1.0/node_modules/is-binary-path/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "events" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/minipass@7.0.4/node_modules/minipass/dist/esm/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "stream" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/minipass@7.0.4/node_modules/minipass/dist/esm/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "string_decoder" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/minipass@7.0.4/node_modules/minipass/dist/esm/index.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
[plugin:vite:resolve] Module "path" has been externalized for browser compatibility, imported by "/home/user/sentry-repro/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js". See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/client.js (39:77) "hostname" is not exported by "__vite-browser-external", imported by "node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/client.js".
✓ 663 modules transformed.
"Readable" is not exported by "__vite-browser-external", imported by "node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/transports/http.js".
file: /home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/transports/http.js:6:9
4: import * as https from 'https';
5: import { HttpsProxyAgent } from 'https-proxy-agent';
6: import { Readable } from 'stream';
            ^
7: import { URL } from 'url';
8: import { createGzip } from 'zlib';
[vite-plugin-sveltekit-compile] "Readable" is not exported by "__vite-browser-external", imported by "node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/transports/http.js".
file: /home/user/sentry-repro/node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/transports/http.js:6:9
4: import * as https from 'https';
5: import { HttpsProxyAgent } from 'https-proxy-agent';
6: import { Readable } from 'stream';
            ^
7: import { URL } from 'url';
8: import { createGzip } from 'zlib';
✓ built in 2.39s
[sentry-vite-plugin] Info: Successfully created release.
[sentry-vite-plugin] Info: Uploading Sourcemaps.
> Rewriting sources
> Adding source map references
> Found 54 files
> Analyzing 54 sources
> Rewriting sources
> Adding source map references
> Nothing to upload
> Bundled 54 files for upload
> Bundle ID: 6c4d46a1-84f3-549e-935f-920b2cb27fd0
> Uploaded files to Sentry
> File upload complete (processing pending on server)
> Organization: hussleinc
> Project: freeman
> Release: 8dd27f1532e5448fb0ec4782ac0a009b
> Dist: None
> Upload type: artifact bundle

Source Map Upload Report
  Scripts
    ~/manifest-full.js
    ~/nodes/0.js
    ~/nodes/1.js
    ~/nodes/2.js
    ~/nodes/3.js
    ~/nodes/4.js
    ~/nodes/5.js
    ~/nodes/6.js
  Minified Scripts
    ~/chunks/environment.js (sourcemap at environment.js.map)
    ~/chunks/hooks.server.js (sourcemap at hooks.server.js.map)
    ~/chunks/index.js (sourcemap at index.js.map)
    ~/chunks/index2.js (sourcemap at index2.js.map)
    ~/chunks/internal.js (sourcemap at internal.js.map)
    ~/chunks/prod-ssr.js (sourcemap at prod-ssr.js.map)
    ~/chunks/sentry-release-injection-file.js (sourcemap at sentry-release-injection-file.js.map)
    ~/chunks/ssr.js (sourcemap at ssr.js.map)
    ~/chunks/stores.js (sourcemap at stores.js.map)
    ~/entries/endpoints/sentry-example/_server.js (sourcemap at _server.js.map)
    ~/entries/fallbacks/error.svelte.js (sourcemap at error.svelte.js.map)
    ~/entries/pages/_layout.svelte.js (sourcemap at _layout.svelte.js.map)
    ~/entries/pages/_page.js (sourcemap at _page.js.map)
    ~/entries/pages/_page.svelte.js (sourcemap at _page.svelte.js.map)
    ~/entries/pages/about/_page.js (sourcemap at _page.js.map)
    ~/entries/pages/about/_page.svelte.js (sourcemap at _page.svelte.js.map)
    ~/entries/pages/sentry-example/_page.svelte.js (sourcemap at _page.svelte.js.map)
    ~/entries/pages/sverdle/_page.server.js (sourcemap at _page.server.js.map)
    ~/entries/pages/sverdle/_page.svelte.js (sourcemap at _page.svelte.js.map)
    ~/entries/pages/sverdle/how-to-play/_page.js (sourcemap at _page.js.map)
    ~/entries/pages/sverdle/how-to-play/_page.svelte.js (sourcemap at _page.svelte.js.map)
    ~/index.js (sourcemap at index.js.map)
    ~/internal.js (sourcemap at internal.js.map)
  Source Maps
    ~/chunks/environment.js.map
    ~/chunks/hooks.server.js.map
    ~/chunks/index.js.map
    ~/chunks/index2.js.map
    ~/chunks/internal.js.map
    ~/chunks/prod-ssr.js.map
    ~/chunks/sentry-release-injection-file.js.map
    ~/chunks/ssr.js.map
    ~/chunks/stores.js.map
    ~/entries/endpoints/sentry-example/_server.js.map
    ~/entries/fallbacks/error.svelte.js.map
    ~/entries/pages/_layout.svelte.js.map
    ~/entries/pages/_page.js.map
    ~/entries/pages/_page.svelte.js.map
    ~/entries/pages/about/_page.js.map
    ~/entries/pages/about/_page.svelte.js.map
    ~/entries/pages/sentry-example/_page.svelte.js.map
    ~/entries/pages/sverdle/_page.server.js.map
    ~/entries/pages/sverdle/_page.svelte.js.map
    ~/entries/pages/sverdle/how-to-play/_page.js.map
    ~/entries/pages/sverdle/how-to-play/_page.svelte.js.map
    ~/index.js.map
    ~/internal.js.map
[sentry-vite-plugin] Info: Successfully uploaded source maps.
[sentry-vite-plugin] Info: Successfully finalized release.
error during build:
RollupError: "Readable" is not exported by "__vite-browser-external", imported by "node_modules/.pnpm/@sentry+node@7.81.1/node_modules/@sentry/node/esm/transports/http.js".
    at error (file:///home/user/sentry-repro/node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/es/shared/parseAst.js:337:30)
    at Module.error (file:///home/user/sentry-repro/node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/es/shared/node-entry.js:12728:16)
    at Module.traceVariable (file:///home/user/sentry-repro/node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/es/shared/node-entry.js:13169:29)
    at ModuleScope.findVariable (file:///home/user/sentry-repro/node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/es/shared/node-entry.js:11582:39)
    at FunctionScope.findVariable (file:///home/user/sentry-repro/node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/es/shared/node-entry.js:5897:38)
    at FunctionBodyScope.findVariable (file:///home/user/sentry-repro/node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/es/shared/node-entry.js:5897:38)
    at Identifier.bind (file:///home/user/sentry-repro/node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/es/shared/node-entry.js:7184:40)
    at NewExpression.bind (file:///home/user/sentry-repro/node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/es/shared/node-entry.js:4625:23)
    at ReturnStatement.bind (file:///home/user/sentry-repro/node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/es/shared/node-entry.js:4625:23)
    at BlockStatement.bind (file:///home/user/sentry-repro/node_modules/.pnpm/rollup@4.5.0/node_modules/rollup/dist/es/shared/node-entry.js:4621:28)
 ELIFECYCLE  Command failed with exit code 1.
@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 Nov 21, 2023
@github-actions github-actions bot added the Package: sveltekit Issues related to the Sentry SvelteKit SDK label Nov 21, 2023
@lforst
Copy link
Member

lforst commented Nov 21, 2023

Hi, thanks for reporting this. We will take a look!

@endigma
Copy link
Author

endigma commented Nov 21, 2023

https://vitejs.dev/guide/migration may be useful

@Lms24
Copy link
Member

Lms24 commented Dec 21, 2023

Hi, please update to the latest SDK version - we should have fixed this issue when we added Seveltekit 2.0 in v7.89.0.

Let me know if upgrading fixes the issue for you, thank you!

@nazihahmed
Copy link

nazihahmed commented Dec 23, 2023

+1 we are having a similar issue
main cause seems to be the source maps upload for us, turning it off by setting autoUploadSourceMaps to false resolve any vite 5 related issues,
the error we are getting is

Uncaught (in promise) ReferenceError: __vite__mapDeps is not defined
image

note that we have migrated to sveltekit 2.0/ vite 5.0 and we didn't have this issue with sveltekit 1.0/vite 4
so clearly there is a correlation there

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 2 Dec 23, 2023
@Lms24
Copy link
Member

Lms24 commented Dec 25, 2023

@nazihahmed which SDK version are you using?

@getsantry
Copy link

getsantry bot commented May 2, 2024

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot closed this as not planned Won't fix, can't repro, duplicate, stale May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: sveltekit Issues related to the Sentry SvelteKit SDK Stale Type: Bug
Projects
Archived in project
Archived in project
Development

No branches or pull requests

5 participants