Sourcemap for ... points to missing source files
for @import
with sass modern api
#18111
Closed
7 tasks done
Labels
Describe the bug
There was a report on Nuxt nuxt/nuxt#28723 as they enables
css.devSourcemap
by default. It turns out the issue can be reproduced on Vite as well, but it wasn't caught byplayground/css-sourcemap
since it doesn't use@import
.This seems to happen when
@import
is resolved via custom importer. Here is an example.Reproduction
https://github.com/hi-ogawa/reproductions/tree/main/vite-sass-modern-sourcemap
Steps to reproduce
Sourcemap for "/home/projects/jvmipklqor.github/src/style.scss" points to missing source files
in the terminalSystem Info
(stackblitz) System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 18.20.3 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 10.2.3 - /usr/local/bin/npm pnpm: 8.15.6 - /usr/local/bin/pnpm npmPackages: vite: ^5.4.1 => 5.4.5
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: