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

SvelteKit vite build infinitely hangs / process does not end #9096

Closed
3 tasks done
PenguinShade opened this issue Sep 22, 2023 · 12 comments
Closed
3 tasks done

SvelteKit vite build infinitely hangs / process does not end #9096

PenguinShade opened this issue Sep 22, 2023 · 12 comments
Labels
Package: sveltekit Issues related to the Sentry SvelteKit SDK Type: Bug

Comments

@PenguinShade
Copy link

PenguinShade commented Sep 22, 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.70.0

Framework Version

@sveltejs/kit 1.25.0

Link to Sentry event

No response

SDK Setup

Sentry.init({
  dsn: 'https://224b69a4f2a27b55d94c768fcc6887de@o4505926245679104.ingest.sentry.io/4505926248955904',
  tracesSampleRate: 1.0,

  environment: import.meta.env.VITE_IS_DEV == "true" ? "development" : "production",

  // This sets the sample rate to be 10%. You may want this to be 100% while
  // in development and sample at a lower rate in production
  replaysSessionSampleRate: 0.1,

  // If the entire session is not sampled, use the below sample rate to sample
  // sessions when an error occurs.
  replaysOnErrorSampleRate: 1.0,
  
  // If you don't want to use Session Replay, just remove the line below:
  integrations: [new Replay({maskAllText: false})],
});

Steps to Reproduce

This is my vite.config.ts

export default defineConfig({
  plugins: [sveltekit(), sentrySvelteKit({
    sourceMapsUploadOptions: {
      org: "apeg-cbb42194d",
      project: "javascript-sveltekit"
    }
  })],
});
  1. Run vite build
    Before installing Sentry it would work fine. When the Sentry plugin is added to the vite plugins it will infinitely hang after completion. It seems like sentry fully complete everything, it just seems to never close the process, so I'm left with an unending process until manually cancelled.

Here are the vite build logs

vite v4.4.9 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 (47) node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@sveltejs/kit/src/runtime/server/fetch.js4:55:28 PM [vite-plugin-svelte] /Users/christianburke/repos/moodstir/src/routes/host/venue/+page.svelte:115:8 A11y: <img> element should have an alt attribute
113:           {currentlyPlaying.album}
114:         </div>
115:         <img src={currentlyPlaying.trackArtUrl} />
             ^
116:         <div>
117:           <span class="font-bold">Rationale:</span>
transforming (64) node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@sveltejs/kit/src/utils/array.js4:55:28 PM [vite-plugin-svelte] /Users/christianburke/repos/moodstir/src/routes/guest/venue/[id]/+page.svelte:59:10 A11y: <div> with click, keypress handlers must have an ARIA role
57:       <div class="flex flex-wrap gap-2 justify-center mt-5">
58:         {#each moodChoices as mood}
59:           <div
              ^
60:             on:click={() => vm.toggleMoodChoice(mood.name)}
61:             on:keypress={() => vm.toggleMoodChoice(mood.name)}
4:55:28 PM [vite-plugin-svelte] /Users/christianburke/repos/moodstir/src/routes/guest/venue/[id]/+page.svelte:84:10 A11y: <div> with click, keydown handlers must have an ARIA role
82:       <div class="m-4 flex gap-1 flex-wrap">
83:         {#each customMoods as customMood}
84:           <div
              ^
85:             class="whitespace-nowrap text-center inline-block px-4 py-2 rounded-full cursor-pointer bg-primary-600 text-white"
86:             on:click={() => vm.removeCustomMood(customMood)}
transforming (101) src/lib/auth/signInVm.ts4:55:28 PM [vite-plugin-svelte] /Users/christianburke/repos/moodstir/src/lib/components/star_rating.svelte:24:4 A11y: <svg> with mousedown handler must have an ARIA role
22: <div class="flex justify-center">
23:   {#each stars as star}
24:     <svg
        ^
25:       class="hover:stroke-slate-400"
26:       width="34"
✓ 336 modules transformed.

vite v4.4.9 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 (22) node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@sveltejs/kit/src/runtime/client/singletons.js4:55:31 PM [vite-plugin-svelte] /Users/christianburke/repos/moodstir/src/routes/guest/venue/[id]/+page.svelte:59:10 A11y: <div> with click, keypress handlers must have an ARIA role
57:       <div class="flex flex-wrap gap-2 justify-center mt-5">
58:         {#each moodChoices as mood}
59:           <div
              ^
60:             on:click={() => vm.toggleMoodChoice(mood.name)}
61:             on:keypress={() => vm.toggleMoodChoice(mood.name)}
4:55:31 PM [vite-plugin-svelte] /Users/christianburke/repos/moodstir/src/routes/guest/venue/[id]/+page.svelte:84:10 A11y: <div> with click, keydown handlers must have an ARIA role
82:       <div class="m-4 flex gap-1 flex-wrap">
83:         {#each customMoods as customMood}
84:           <div
              ^
85:             class="whitespace-nowrap text-center inline-block px-4 py-2 rounded-full cursor-pointer bg-primary-600 text-white"
86:             on:click={() => vm.removeCustomMood(customMood)}
4:55:31 PM [vite-plugin-svelte] /Users/christianburke/repos/moodstir/src/routes/host/venue/+page.svelte:115:8 A11y: <img> element should have an alt attribute
113:           {currentlyPlaying.album}
114:         </div>
115:         <img src={currentlyPlaying.trackArtUrl} />
             ^
116:         <div>
117:           <span class="font-bold">Rationale:</span>
transforming (28) node_modules/.pnpm/[email protected]/node_modules/svelte/src/runtime/index.js4:55:31 PM [vite-plugin-svelte] /Users/christianburke/repos/moodstir/src/lib/components/star_rating.svelte:24:4 A11y: <svg> with mousedown handler must have an ARIA role
22: <div class="flex justify-center">
23:   {#each stars as star}
24:     <svg
        ^
25:       class="hover:stroke-slate-400"
26:       width="34"
✓ 732 modules transformed.
.svelte-kit/output/client/_app/version.json                                        0.03 kB │ gzip:   0.05 kB
.svelte-kit/output/client/vite-manifest.json                                       8.54 kB │ gzip:   1.10 kB
.svelte-kit/output/client/_app/immutable/assets/logo.b7650ad8.png                 50.05 kB
.svelte-kit/output/client/_app/immutable/assets/Input.1d121e74.css                 0.03 kB │ gzip:   0.05 kB
.svelte-kit/output/client/_app/immutable/assets/0.f42f4a3f.css                   117.32 kB │ gzip:  16.65 kB
.svelte-kit/output/client/_app/immutable/chunks/logo.68e838cb.js                   0.13 kB │ gzip:   0.14 kB │ map:     0.25 kB
.svelte-kit/output/client/_app/immutable/chunks/strings.69022a11.js                0.15 kB │ gzip:   0.15 kB │ map:     0.39 kB
.svelte-kit/output/client/_app/immutable/chunks/stores.127ec96d.js                 0.34 kB │ gzip:   0.22 kB │ map:     4.10 kB
.svelte-kit/output/client/_app/immutable/chunks/index.41c12a39.js                  0.49 kB │ gzip:   0.36 kB │ map:     7.08 kB
.svelte-kit/output/client/_app/immutable/chunks/index.es.471f081e.js               0.56 kB │ gzip:   0.36 kB │ map:     2.50 kB
.svelte-kit/output/client/_app/immutable/nodes/2.a883a34b.js                       0.58 kB │ gzip:   0.37 kB │ map:     0.38 kB
.svelte-kit/output/client/_app/immutable/chunks/guest.b1036bcd.js                  0.60 kB │ gzip:   0.39 kB │ map:     2.13 kB
.svelte-kit/output/client/_app/immutable/nodes/8.55145436.js                       0.60 kB │ gzip:   0.44 kB │ map:     0.38 kB
.svelte-kit/output/client/_app/immutable/nodes/1.dd26f7fd.js                       0.88 kB │ gzip:   0.55 kB │ map:     0.76 kB
.svelte-kit/output/client/_app/immutable/chunks/v4.a960c1f4.js                     0.92 kB │ gzip:   0.50 kB │ map:     5.27 kB
.svelte-kit/output/client/_app/immutable/chunks/each.78722b1f.js                   0.94 kB │ gzip:   0.59 kB │ map:     6.13 kB
.svelte-kit/output/client/_app/immutable/nodes/7.743eb799.js                       1.12 kB │ gzip:   0.66 kB │ map:     2.19 kB
.svelte-kit/output/client/_app/immutable/chunks/guestSessionManager.2b66d9fa.js    1.19 kB │ gzip:   0.66 kB │ map:     4.19 kB
.svelte-kit/output/client/_app/immutable/chunks/Label.fdc07823.js                  2.37 kB │ gzip:   1.25 kB │ map:     1.99 kB
.svelte-kit/output/client/_app/immutable/chunks/singletons.dd99330e.js             2.56 kB │ gzip:   1.32 kB │ map:    13.43 kB
.svelte-kit/output/client/_app/immutable/chunks/soundtrackAuth.4c2cb063.js         2.80 kB │ gzip:   0.98 kB │ map:     7.19 kB
.svelte-kit/output/client/_app/immutable/chunks/index.8277eeba.js                  5.94 kB │ gzip:   2.93 kB │ map:    44.02 kB
.svelte-kit/output/client/_app/immutable/nodes/6.c1d2e83e.js                       6.02 kB │ gzip:   2.54 kB │ map:     7.18 kB
.svelte-kit/output/client/_app/immutable/chunks/spinner.24a6eb67.js                8.13 kB │ gzip:   1.09 kB │ map:    11.47 kB
.svelte-kit/output/client/_app/immutable/chunks/scheduler.313f75a9.js              9.43 kB │ gzip:   3.76 kB │ map:    68.48 kB
.svelte-kit/output/client/_app/immutable/nodes/0.04e0d53e.js                      16.11 kB │ gzip:   6.68 kB │ map:    60.88 kB
.svelte-kit/output/client/_app/immutable/nodes/3.964564b0.js                      17.92 kB │ gzip:   6.47 kB │ map:    27.91 kB
.svelte-kit/output/client/_app/immutable/nodes/4.e3bc2b7e.js                      22.67 kB │ gzip:   7.69 kB │ map:    26.25 kB
.svelte-kit/output/client/_app/immutable/entry/start.08cb52b5.js                  24.87 kB │ gzip:   9.81 kB │ map:   136.13 kB
.svelte-kit/output/client/_app/immutable/chunks/Input.4fa82a44.js                 35.47 kB │ gzip:  11.36 kB │ map:   122.66 kB
.svelte-kit/output/client/_app/immutable/nodes/5.8a0565f1.js                     112.76 kB │ gzip:  36.02 kB │ map:   326.99 kB
.svelte-kit/output/client/_app/immutable/entry/app.b7aa06b7.js                   261.79 kB │ gzip:  80.88 kB │ map: 1,055.72 kB
.svelte-kit/output/client/_app/immutable/chunks/appIOC.f4b6ac6f.js               675.87 kB │ gzip: 165.90 kB │ map: 3,035.55 kB

(!) Some chunks are larger than 500 kBs after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
✓ built in 5.19s
.svelte-kit/output/server/vite-manifest.json                                      6.81 kB
.svelte-kit/output/server/_app/immutable/assets/logo.b7650ad8.png                50.05 kB
.svelte-kit/output/server/_app/immutable/assets/Indicator.1d121e74.css            0.03 kB
.svelte-kit/output/server/_app/immutable/assets/_layout.5f3a1962.css            117.24 kB
.svelte-kit/output/server/chunks/logo.js                                          0.11 kB │ map:   0.19 kB
.svelte-kit/output/server/entries/pages/_layout.ts.js                             0.13 kB │ map:   0.18 kB
.svelte-kit/output/server/chunks/strings.js                                       0.21 kB │ map:   0.35 kB
.svelte-kit/output/server/entries/endpoints/api/soundtrack/_server.ts.js          0.25 kB │ map:   0.10 kB
.svelte-kit/output/server/internal.js                                             0.29 kB │ map:   0.09 kB
.svelte-kit/output/server/entries/pages/sentry-example/_page.svelte.js            0.30 kB │ map:   0.10 kB
.svelte-kit/output/server/chunks/guest.js                                         0.34 kB │ map:   1.64 kB
.svelte-kit/output/server/chunks/index.es.js                                      0.35 kB │ map:   0.76 kB
.svelte-kit/output/server/entries/pages/_page.svelte.js                           0.43 kB │ map:   0.40 kB
.svelte-kit/output/server/entries/fallbacks/error.svelte.js                       0.51 kB │ map:   0.46 kB
.svelte-kit/output/server/entries/pages/playground/_page.svelte.js                0.51 kB │ map:   1.70 kB
.svelte-kit/output/server/chunks/stores.js                                        0.56 kB │ map:   4.03 kB
.svelte-kit/output/server/chunks/index.js                                         1.37 kB │ map:   7.02 kB
.svelte-kit/output/server/chunks/Label.js                                         1.55 kB │ map:   1.67 kB
.svelte-kit/output/server/chunks/hooks.server.js                                  2.02 kB │ map:   5.93 kB
.svelte-kit/output/server/chunks/index2.js                                        2.03 kB │ map:   9.42 kB
.svelte-kit/output/server/chunks/guestSessionManager.js                           2.59 kB │ map:   4.01 kB
.svelte-kit/output/server/chunks/soundtrackAuth.js                                4.55 kB │ map:   7.30 kB
.svelte-kit/output/server/entries/pages/login/_page.svelte.js                     5.35 kB │ map:   6.02 kB
.svelte-kit/output/server/chunks/internal.js                                      5.59 kB │ map:   8.03 kB
.svelte-kit/output/server/entries/pages/admin/account-creation/_page.svelte.js    6.57 kB │ map:  12.84 kB
.svelte-kit/output/server/chunks/spinner.js                                       7.57 kB │ map:  11.27 kB
.svelte-kit/output/server/chunks/ssr.js                                           8.63 kB │ map:  64.37 kB
.svelte-kit/output/server/entries/pages/_layout.svelte.js                        14.49 kB │ map:  36.16 kB
.svelte-kit/output/server/entries/pages/guest/venue/_id_/_page.svelte.js         16.97 kB │ map:  22.53 kB
.svelte-kit/output/server/chunks/appIOC.js                                       36.45 kB │ map:  57.87 kB
.svelte-kit/output/server/entries/pages/host/venue/_page.svelte.js               63.92 kB │ map:  90.88 kB
.svelte-kit/output/server/chunks/Input.js                                        82.27 kB │ map: 131.05 kB
.svelte-kit/output/server/index.js                                              108.32 kB │ map: 248.96 kB

Run npm run preview to preview your production build locally.

> Using @sveltejs/adapter-static
  Wrote site to "build"
  ✔ done
✓ built in 9.92s
[sentry-vite-plugin] Info: Successfully created release.
[sentry-vite-plugin] Info: Uploading Sourcemaps.
⠁ 
> Found 70 files
> Analyzing 56 sources
> ~/_app/immutable/chunks/spinner.24a6eb67.js
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0/56
> Analyzing 70 sources
> Analyzing completed in 0.025s
> Rewriting sources
> Analyzing completed in 0.027s
> Rewriting sources
> Rewriting completed in 0.077s
> Adding source map references
> Bundling completed in 0.05s
> Bundled 70 files for upload
> Bundle ID: db7a5925-51ce-5d77-9726-8a84a568fbef
> Optimizing completed in 0.006s
> Bundling files for upload... 
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░  0/56
> Bundling completed in 0.293s
> Bundled 56 files for upload
> Bundle ID: 6e611537-764b-5b44-81fa-5b4389e6fad1
> Optimizing completed in 0.004s
> Uploading completed in 0.643s
> Uploading files...
> Processing completed in 0.166s
> File upload complete (processing pending on server)
> Organization: apeg-cbb42194d
> Project: javascript-sveltekit
> Release: 40d5e0cd2f2543dabff61f42308c85f0
> Dist: None
> Upload type: artifact bundle

Source Map Upload Report
  Scripts
    ~/manifest-full.js
    ~/manifest.js
    ~/nodes/0.js
    ~/nodes/1.js
    ~/nodes/2.js
    ~/nodes/3.js
    ~/nodes/4.js
    ~/nodes/5.js
    ~/nodes/6.js
    ~/nodes/7.js
    ~/nodes/8.js
  Minified Scripts
    ~/chunks/Input.js (sourcemap at Input.js.map)
    ~/chunks/Label.js (sourcemap at Label.js.map)
    ~/chunks/appIOC.js (sourcemap at appIOC.js.map)
    ~/chunks/guest.js (sourcemap at guest.js.map)
    ~/chunks/guestSessionManager.js (sourcemap at guestSessionManager.js.map)
    ~/chunks/hooks.server.js (sourcemap at hooks.server.js.map)
    ~/chunks/index.es.js (sourcemap at index.es.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/logo.js (sourcemap at logo.js.map)
    ~/chunks/soundtrackAuth.js (sourcemap at soundtrackAuth.js.map)
    ~/chunks/spinner.js (sourcemap at spinner.js.map)
    ~/chunks/ssr.js (sourcemap at ssr.js.map)
    ~/chunks/stores.js (sourcemap at stores.js.map)
    ~/chunks/strings.js (sourcemap at strings.js.map)
    ~/entries/endpoints/api/soundtrack/_server.ts.js (sourcemap at _server.ts.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/_layout.ts.js (sourcemap at _layout.ts.js.map)
    ~/entries/pages/_page.svelte.js (sourcemap at _page.svelte.js.map)
    ~/entries/pages/admin/account-creation/_page.svelte.js (sourcemap at _page.svelte.js.map)
    ~/entries/pages/guest/venue/_id_/_page.svelte.js (sourcemap at _page.svelte.js.map)
    ~/entries/pages/host/venue/_page.svelte.js (sourcemap at _page.svelte.js.map)
    ~/entries/pages/login/_page.svelte.js (sourcemap at _page.svelte.js.map)
    ~/entries/pages/playground/_page.svelte.js (sourcemap at _page.svelte.js.map)
    ~/entries/pages/sentry-example/_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/Indicator.svelte_svelte_type_style_lang.js.map
    ~/chunks/Input.js.map
    ~/chunks/Label.js.map
    ~/chunks/appIOC.js.map
    ~/chunks/guest.js.map
    ~/chunks/guestSessionManager.js.map
    ~/chunks/hooks.server.js.map
    ~/chunks/index.es.js.map
    ~/chunks/index.js.map
    ~/chunks/index2.js.map
    ~/chunks/internal.js.map
    ~/chunks/logo.js.map
    ~/chunks/soundtrackAuth.js.map
    ~/chunks/spinner.js.map
    ~/chunks/ssr.js.map
    ~/chunks/stores.js.map
    ~/chunks/strings.js.map
    ~/entries/endpoints/api/soundtrack/_server.ts.js.map
    ~/entries/fallbacks/error.svelte.js.map
    ~/entries/pages/_layout.svelte.js.map
    ~/entries/pages/_layout.ts.js.map
    ~/entries/pages/_page.svelte.js.map
    ~/entries/pages/admin/account-creation/_page.svelte.js.map
    ~/entries/pages/guest/venue/_id_/_page.svelte.js.map
    ~/entries/pages/host/venue/_page.svelte.js.map
    ~/entries/pages/login/_page.svelte.js.map
    ~/entries/pages/playground/_page.svelte.js.map
    ~/entries/pages/sentry-example/_page.svelte.js.map
> Uploading completed in 0.541s
> Uploaded files to Sentry
> Processing completed in 0.12s
> File upload complete (processing pending on server)
> Organization: apeg-cbb42194d
> Project: javascript-sveltekit
> Release: 40d5e0cd2f2543dabff61f42308c85f0
> Dist: None
> Upload type: artifact bundle

Source Map Upload Report
  Minified Scripts
    ~/_app/immutable/chunks/Input.4fa82a44.js (sourcemap at Input.4fa82a44.js.map)
    ~/_app/immutable/chunks/Label.fdc07823.js (sourcemap at Label.fdc07823.js.map)
    ~/_app/immutable/chunks/appIOC.f4b6ac6f.js (sourcemap at appIOC.f4b6ac6f.js.map)
    ~/_app/immutable/chunks/each.78722b1f.js (sourcemap at each.78722b1f.js.map)
    ~/_app/immutable/chunks/guest.b1036bcd.js (sourcemap at guest.b1036bcd.js.map)
    ~/_app/immutable/chunks/guestSessionManager.2b66d9fa.js (sourcemap at guestSessionManager.2b66d9fa.js.map)
    ~/_app/immutable/chunks/index.41c12a39.js (sourcemap at index.41c12a39.js.map)
    ~/_app/immutable/chunks/index.8277eeba.js (sourcemap at index.8277eeba.js.map)
    ~/_app/immutable/chunks/index.es.471f081e.js (sourcemap at index.es.471f081e.js.map)
    ~/_app/immutable/chunks/logo.68e838cb.js (sourcemap at logo.68e838cb.js.map)
    ~/_app/immutable/chunks/scheduler.313f75a9.js (sourcemap at scheduler.313f75a9.js.map)
    ~/_app/immutable/chunks/singletons.dd99330e.js (sourcemap at singletons.dd99330e.js.map)
    ~/_app/immutable/chunks/soundtrackAuth.4c2cb063.js (sourcemap at soundtrackAuth.4c2cb063.js.map)
    ~/_app/immutable/chunks/spinner.24a6eb67.js (sourcemap at spinner.24a6eb67.js.map)
    ~/_app/immutable/chunks/stores.127ec96d.js (sourcemap at stores.127ec96d.js.map)
    ~/_app/immutable/chunks/strings.69022a11.js (sourcemap at strings.69022a11.js.map)
    ~/_app/immutable/chunks/v4.a960c1f4.js (sourcemap at v4.a960c1f4.js.map)
    ~/_app/immutable/entry/app.b7aa06b7.js (sourcemap at app.b7aa06b7.js.map)
    ~/_app/immutable/entry/start.08cb52b5.js (sourcemap at start.08cb52b5.js.map)
    ~/_app/immutable/nodes/0.04e0d53e.js (sourcemap at 0.04e0d53e.js.map)
    ~/_app/immutable/nodes/1.dd26f7fd.js (sourcemap at 1.dd26f7fd.js.map)
    ~/_app/immutable/nodes/2.a883a34b.js (sourcemap at 2.a883a34b.js.map)
    ~/_app/immutable/nodes/3.964564b0.js (sourcemap at 3.964564b0.js.map)
    ~/_app/immutable/nodes/4.e3bc2b7e.js (sourcemap at 4.e3bc2b7e.js.map)
    ~/_app/immutable/nodes/5.8a0565f1.js (sourcemap at 5.8a0565f1.js.map)
    ~/_app/immutable/nodes/6.c1d2e83e.js (sourcemap at 6.c1d2e83e.js.map)
    ~/_app/immutable/nodes/7.743eb799.js (sourcemap at 7.743eb799.js.map)
    ~/_app/immutable/nodes/8.55145436.js (sourcemap at 8.55145436.js.map)
  Source Maps
    ~/_app/immutable/chunks/Input.4fa82a44.js.map
    ~/_app/immutable/chunks/Label.fdc07823.js.map
    ~/_app/immutable/chunks/appIOC.f4b6ac6f.js.map
    ~/_app/immutable/chunks/each.78722b1f.js.map
    ~/_app/immutable/chunks/guest.b1036bcd.js.map
    ~/_app/immutable/chunks/guestSessionManager.2b66d9fa.js.map
    ~/_app/immutable/chunks/index.41c12a39.js.map
    ~/_app/immutable/chunks/index.8277eeba.js.map
    ~/_app/immutable/chunks/index.es.471f081e.js.map
    ~/_app/immutable/chunks/logo.68e838cb.js.map
    ~/_app/immutable/chunks/scheduler.313f75a9.js.map
    ~/_app/immutable/chunks/singletons.dd99330e.js.map
    ~/_app/immutable/chunks/soundtrackAuth.4c2cb063.js.map
    ~/_app/immutable/chunks/spinner.24a6eb67.js.map
    ~/_app/immutable/chunks/stores.127ec96d.js.map
    ~/_app/immutable/chunks/strings.69022a11.js.map
    ~/_app/immutable/chunks/v4.a960c1f4.js.map
    ~/_app/immutable/entry/app.b7aa06b7.js.map
    ~/_app/immutable/entry/start.08cb52b5.js.map
    ~/_app/immutable/nodes/0.04e0d53e.js.map
    ~/_app/immutable/nodes/1.dd26f7fd.js.map
    ~/_app/immutable/nodes/2.a883a34b.js.map
    ~/_app/immutable/nodes/3.964564b0.js.map
    ~/_app/immutable/nodes/4.e3bc2b7e.js.map
    ~/_app/immutable/nodes/5.8a0565f1.js.map
    ~/_app/immutable/nodes/6.c1d2e83e.js.map
    ~/_app/immutable/nodes/7.743eb799.js.map
    ~/_app/immutable/nodes/8.55145436.js.map
[sentry-vite-plugin] Info: Successfully uploaded source maps.
[sentry-vite-plugin] Info: Successfully finalized release.

Expected Result

I would expect the build process to end.

Actual Result

Build process does not end.

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 Sep 22, 2023
@github-actions github-actions bot added the Package: sveltekit Issues related to the Sentry SvelteKit SDK label Sep 22, 2023
@mydea
Copy link
Member

mydea commented Sep 28, 2023

Hey,

just to clarify: If you remove the sentrySvelteKit plugin, the build works as expected?

@Lms24
Copy link
Member

Lms24 commented Oct 2, 2023

@PenguinShade In addition to Francesco's question, can you try switching the order of the svelteKit and sentrySvelteKit? sentrySvelteKit should come first. More docs on using sentrySvelteKit.

@getsantry getsantry bot moved this to Waiting for: Community in GitHub Issues with 👀 Oct 2, 2023
@PenguinShade
Copy link
Author

@mydea That is correct, when I remove sentrySvelteKit the build process finishes fine.

@Lms24 I tried switching the two in vite.config.ts and am getting the same result

@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 Oct 2, 2023
@PenguinShade
Copy link
Author

I just tried it with a fresh instance of svelte kit and it worked, so it looks like it is something specific to my project. I'll do some digging and try to see what the problem is.

@Lms24
Copy link
Member

Lms24 commented Oct 4, 2023

thanks! lmk when you find the cause!

@PenguinShade
Copy link
Author

After some investigation, I discovered that the problem was a mixture of Sentry and Firebase v9.23 in my dependencies, particularly this import line mixed with Sentry being installed caused the bug:

import { connectFirestoreEmulator, getFirestore } from "firebase/firestore";

For whatever reason, having this version of Firebase, using firestore from it and having sentry installed causes the build process to infinitely hang.

To Fix this I upgraded Firebase from 9.23 -> 10.5 and it all started working.

It's interesting to note that using Firebase 9.23 apart from Sentry worked fine. It seems there is some underlying conflict, but probably not worth pursuing since it's as simple as updating Firebase.

@Lms24
Copy link
Member

Lms24 commented Oct 17, 2023

It's interesting to note that using Firebase 9.23 apart from Sentry worked fine. It seems there is some underlying conflict, but probably not worth pursuing since it's as simple as updating Firebase.

Thanks for letting us know anyway. Always good to be aware of it.
I use firebase 9 and Sentry in an Angular app of mine but didn't notice any problems. I wonder if firebase monkey patch anything for firestore which might interfere with Sentry. If this comes up again, we at least know where to look.

@smakhtin
Copy link

smakhtin commented Dec 7, 2023

Having the same problem now, build is stuck on [sentry-vite-plugin] Info: Successfully finalized release.

@Mariscal6
Copy link

Hi! I'm having the same problem sentry is conflicting with paraglide (a translation library that I'm going to remove soon)

"@sentry/sveltekit": "^8.32.0",

"@inlang/paraglide-js" : "1.11.2",

I have tested all posible version combinations, and vite build keeps hanging in the my bitbucket pipeline, not in my local.... The build completes, but it hangs.

I've seen that is a common issue with vite, but to me is been imposible to fix it.

I am desperate to find the solution, does anyone know what it could be or at least how I can debug it to find the problem?

@dror-weiss
Copy link

@Mariscal6 , I'm having an issue with the paraglide/sentry couple; did you find a solution these will work together in the CI?

@Mariscal6
Copy link

@dror-weiss I've end up removing paraglide..

@dror-weiss
Copy link

😭
I hope this issue will be resolved in paraglide and you could come back.

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 Type: Bug
Projects
Archived in project
Development

No branches or pull requests

6 participants