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

Template is not mapped in sourcemap on Vite applications #12682

Open
mertcb opened this issue Jan 10, 2025 · 1 comment · May be fixed by #12701
Open

Template is not mapped in sourcemap on Vite applications #12682

mertcb opened this issue Jan 10, 2025 · 1 comment · May be fixed by #12701
Labels
🐞 bug Something isn't working

Comments

@mertcb
Copy link

mertcb commented Jan 10, 2025

Vue version

3.5.13

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-mpsjmqwf?file=package.json

Steps to reproduce

Run npm install on slackblitz then, run npm run build then npm run preview. You'll see some dist js and map files at dist/assets folder. Then open inspect tab in your browser and click throw error. When you upload map file to https://evanw.github.io/source-map-visualization/ and select HelloWorld.vue file, you can see only ref(0) part is mapped.

What is expected?

I expect all source code for SFC has been mapped

What is actually happening?

When you upload map file to https://evanw.github.io/source-map-visualization/ and select HelloWorld.vue file like mentioned above, you can see only ref(0) part is mapped.

System Info

System:
    OS: macOS 15.0.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 88.73 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.9.2 - ~/.nvm/versions/node/v20.10.0/bin/npm
  Browsers:
    Chrome: 131.0.6778.205
    Edge: 131.0.2903.112
    Safari: 18.0.1
  npmPackages:
    @vitejs/plugin-vue: ^5.2.1 => 5.2.1 
    vite: ^6.0.7 => 6.0.7

Any additional comments?

No response

@mertcb
Copy link
Author

mertcb commented Jan 10, 2025

I opened related issue at vitejs/vite-plugin-vue#500 but nobody has replied it

@edison1105 edison1105 added the 🐞 bug Something isn't working label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants