Skip to content

bug: doesn't work with vite + plugin-react-swc #179

Open
@scarf005

Description

@scarf005

Where the bug happens

  • Browser Extension
  • Library
  • Other

your browser

firefox

Describe the bug

Image

according to the official site, locatorJS can work without setting up babel when react devtools is working.

https://addons.mozilla.org/en-US/firefox/addon/locatorjs/

Image

Image Image however, despite devtools working, locatorJS is unable to find sources. to reproduce the issue, create a default vite project with react + typescript + swc template and attempt to use locatorJS on it.
pnpm create vite@latest
│
◇  Project name:
│  locator
│
◇  Select a framework:
│  React
│
◇  Select a variant:
│  TypeScript + SWC
│
◇  Scaffolding project in /Users/nemo/repo/etc/locator...
│
└  Done. Now run:

  cd locator
  pnpm install
  pnpm run dev

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions