Skip to content

Svelte Inspector not working Cursor IDE #1240

Description

@JoshuaHintze

Describe the bug

I'm trying to use the svelte inspect using the Cursor IDE. Below is my output when I try to inspect an element

  VITE v7.2.2  ready in 604 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
  ➜  press h + enter to show help

9:36:33 PM [vite] (ssr) page reload src/lib/state/estimateTabManager.svelte.ts

Could not open +page.svelte in the editor.

I don't see any errors in the browser (Edge)

I started vite using pnpm dev

My svelte.config.js file has

	vitePlugin: {
		inspector: true
	}

The inspector works great it just doesn't open up the editor file.

Reproduction URL

https://github.com/gimp3695/sample

Reproduction

No response

Logs

System Info

System:
    OS: Linux 6.6 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
    CPU: (24) x64 13th Gen Intel(R) Core(TM) i7-13700K
    Memory: 14.81 GB / 31.22 GB
    Container: Yes
    Shell: 5.8.1 - /usr/bin/zsh
  Binaries:
    Node: 22.21.1 - /home/joshh/.nvm/versions/node/v22.21.1/bin/node
    npm: 10.9.4 - /home/joshh/.nvm/versions/node/v22.21.1/bin/npm
    pnpm: 10.22.0 - /home/joshh/.local/share/pnpm/pnpm
    bun: 1.0.15 - /home/joshh/.bun/bin/bun
  npmPackages:
    @sveltejs/adapter-node: ^5.4.0 => 5.4.0 
    @sveltejs/adapter-static: ^3.0.10 => 3.0.10 
    @sveltejs/kit: ^2.48.5 => 2.48.5 
    @sveltejs/vite-plugin-svelte: ^6.2.1 => 6.2.1 
    svelte: ^5.43.8 => 5.43.8 
    vite: ^7.2.2 => 7.2.2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstream

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions