Skip to content

Compatible with WXT framework #436

Closed

Description

@pavitra-infocusp

I added the vue devtools next plugin to my Vite config as per the docs. The project uses WXT framework to build a Chrome extension.

image

When I run the extension, I fail to see the devtools on the page.

Console:
image

index.html file:
image

Source files:
image

Activity

  1. added
    enhancement
    vite
    on Jun 10, 2024
  2. changed the title [-]Unable to load in a browser extension[/-] [+]Compataible with wtx framework[/+] on Jun 10, 2024
  3. changed the title [-]Compataible with wtx framework[/-] [+]Compataible with WXT framework[/+] on Jun 10, 2024
  4. alexzhang1030 commented on Jun 10, 2024

    @alexzhang1030
    Member

    I have implemented a POC and will further explore improved handling logic.

    Untitled.mp4
  5. changed the title [-]Compataible with WXT framework[/-] [+]Compatible with WXT framework[/+] on Jun 11, 2024
  6. webfansplz commented on Jun 12, 2024

    @webfansplz
    Member

    Hi @pavitra-infocusp , You can try the appendTo option, e.g.

    vueDevTools({
      appendTo: '/entrypoints/popup/main.ts'
    })

    wxt

  7. added
    documentation
    usage
    and removed
    enhancement
    vite
    on Jun 12, 2024
  8. pavitra-infocusp commented on Jun 12, 2024

    @pavitra-infocusp
    Author
    vueDevTools({
      appendTo: '/entrypoints/newtab/main.js' // my new tab entrypoint
    })

    Thank you, that worked great!

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

Metadata

Metadata

Assignees

Labels

documentationusage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions