Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Source missing in chrome when debugging #191

Open
Citriik opened this issue May 3, 2022 · 7 comments
Open

Source missing in chrome when debugging #191

Citriik opened this issue May 3, 2022 · 7 comments

Comments

@Citriik
Copy link

Citriik commented May 3, 2022

Hello,

I'm using the latest version (2.0.0) of this package and when I try to debug something in chrome (it works in Firefox), the script and template section are missing in the source tab :(

image image

After some testing I figured out that if I change the style block to CSS instead of using a preprocessor then it works.
Here is a minimal repro: https://github.com/Citriik/-vite-plugin-vue2-debug-error

Thanks.

@Dams591
Copy link

Dams591 commented May 4, 2022

Facing the same issue here ! Any idea ?

@Citriik
Copy link
Author

Citriik commented May 4, 2022

I found something weird, if you install the package unplugin-vue-components and add it to the plugins in the vite.config.js it fixes the issue.

plugins: [
  createVuePlugin(),
  Components({
    dirs: [],
  }),
];

@zen-liutao
Copy link

I met the same issue. I found the inline soucemap is wrong. I generated the \n\n\n.....\n. I found a way to solve the problem in chrome. Just diable the js souce map option.

@bobohuochai
Copy link

I met the same issue...

@Mr-xzq
Copy link

Mr-xzq commented Jul 18, 2022

I meet the same issue...

@ZTjack
Copy link

ZTjack commented Jul 18, 2022

I met the same issue... Wish a fix

@BenceSzalai
Copy link

BenceSzalai commented Nov 2, 2022

Same was raised with Vite. It turned out to be an issue with this plugin, but a workaround was put in place. However that may carry other issues too imho, but will see. Meanwhile a'm here to add a meaningful link between these two:
Issue: vitejs/vite#9830
Workaround fix: vitejs/vite#9914

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants