Skip to content

Sentry SvelteKit Wizard fails with "config.plugins.splice is not a function" #363

Closed
@wtachau

Description

@wtachau

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

Framework Version

SvelteKit 1.22.3

Link to Sentry event

No response

SDK Setup

Sentry.init({
    dsn: "<DSN>",
    tracesSampleRate: 1
})

Steps to Reproduce

$ npx @sentry/wizard@latest -i sveltekit

Expected Result

For the Sentry Sveltekit library to be installed correctly

Actual Result

 npx @sentry/wizard@latest -i sveltekit
Running Sentry Wizard...
version: 3.7.1 | sentry-cli version: 1.75.2
Sentry Wizard will help you to configure your project
Thank you for using Sentry :)
Skipping connection to Sentry due files already patched

┌   Sentry SvelteKit Wizard
│
◇   ──────────────────────────────────────────────────────────────╮
│                                                                 │
│  This Wizard will help you set up Sentry for your application.  │
│  Thank you for using Sentry :)                                  │
│                                                                 │
│  Version: 3.7.1                                                 │
│                                                                 │
├─────────────────────────────────────────────────────────────────╯
│
◇  Are you using Sentry SaaS or self-hosted Sentry?
│  Sentry SaaS (sentry.io)
│
◇  Do you already have a Sentry account?
│  Yes
│
●  If the browser window didn't open automatically, please open the following link to log into Sentry:

│  https://sentry.io/account/settings/wizard/<account>/

◇  Login complete.

◇  Select your Sentry project.
│  nemo-iv/nemo

◇  The @sentry/sveltekit package is already installed. Do you want to update it to the latest version?
│  Yes

◇  Updated @sentry/sveltekit with yarn.
✓ Successfully added the auth token to .sentryclirc
✓ .sentryclirc added to .gitignore
✓ Successfully created sentry.properties


▲  File hooks.client.ts already contains Sentry code.
│  Skipping adding Sentry functionality to hooks.client.ts.

▲  File hooks.server.ts already contains Sentry code.
│  Skipping adding Sentry functionality to hooks.server.ts.

■  Error while setting up the SvelteKit SDK:

●  TypeError: config.plugins.splice is not a function

🎉  Successfully set up Sentry for your project 🎉

CleanShot 2023-07-17 at 09 31 12@2x

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions