Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird error when sourcemap is enabled #449

Open
neilfranci opened this issue Feb 15, 2024 · 1 comment
Open

Weird error when sourcemap is enabled #449

neilfranci opened this issue Feb 15, 2024 · 1 comment
Labels
bug Something isn't working contribution welcome

Comments

@neilfranci
Copy link

neilfranci commented Feb 15, 2024

Describe the bug

When I update from 0.14.7 to 0.15.0 source map is enabled by default and
whenever I make change in content script and save it print the error
Error when using sourcemap for reporting an error: Can't resolve original location of error.

Set it off sourcemap: false will not cause it anymore.

Not sure if this happened with other frameworks like React or Svelte

To Reproduce

Share minimal reproduction. Examples of a minimal reproduction:
temp.zip

Steps to reproduce the bug using the reproduction:

  1. Install dependencies: pnpm i
  2. Start dev mode: pnpm dev
  3. Go to MainUI.vue
  4. Try comment const test = ref('test');
  5. It will crash

Screenshots

image

Environment

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 12th Gen Intel(R) Core(TM) i5-12500H
    Memory: 4.44 GB / 15.73 GB
  Binaries:
    Node: 20.11.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.21 - C:\Program Files\nodejs\yarn.CMD
    npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.15.1 - C:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Chromium (121.0.2277.112)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    wxt: ^0.15.0 => 0.15.0

Additional context

Already tested out latest 0.16.6 but still yeah

@neilfranci neilfranci added the triage Bug or problem that needs to be looked into label Feb 15, 2024
@aklinker1
Copy link
Collaborator

aklinker1 commented Feb 15, 2024

Thanks for the report. But yeah, not sure TBH. This is the second problem with the vue plugin, also see #270. I haven't had time to look into this in-depth yet, only enough to follow your reproproduction and see the error myself.... Re-running the dev command works, but that's obviously not a solution...

I'll have to explore the vue plugin a bit more to try to figure out what's going on, but I have other priorities right now, so it'd be a great help if someone else helped out with this.

@aklinker1 aklinker1 added bug Something isn't working contribution welcome and removed triage Bug or problem that needs to be looked into labels Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working contribution welcome
Projects
None yet
Development

No branches or pull requests

2 participants