Skip to content

Requires +page.{tj}s file when using sveltekit and Houdini #8846

Closed
@lukaso

Description

@lukaso

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.64.0

Framework Version

Sveltekit 1.22.4

Link to Sentry event

No response

SDK Setup

    Sentry.init({
      dsn: PUBLIC_SENTRY_DSN,
      tracesSampleRate: 1.0,

      // 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()],
    });

Steps to Reproduce

  1. Create a project
  2. Set +layout.js or ts to export const ssr = false (don't know if this is relevant to reproducing)
  3. Add in sentry
  4. Create a route and add a +page.svelte
  5. Do not create a +page.ts or a +page.js
  6. Run the project using pnpm dev

Expected Result

The project runs

Actual Result

This happens for any page in the routes, so it doesn't matter what the path is.

Internal server error: ENOENT: no such file or directory, open '/src/routes/(app)/projects/[projectid]/settings/+page.js'
  
[Error: ENOENT: no such file or directory, open '/src/routes/(app)/projects/[projectid]/settings/+page.js'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/src/routes/(app)/projects/[projectid]/settings/+page.js'
}

Metadata

Metadata

Assignees

Labels

Package: sveltekitIssues related to the Sentry SvelteKit SDK

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions