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

Error page pointing to wrong line number for CSS errors #6971

Closed
1 task
shawninder opened this issue May 2, 2023 · 1 comment
Closed
1 task

Error page pointing to wrong line number for CSS errors #6971

shawninder opened this issue May 2, 2023 · 1 comment

Comments

@shawninder
Copy link

What version of astro are you using?

2.3.3

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

npm

What operating system are you using?

Mac

What browser are you using?

Chrome

Describe the Bug

When an scss @use statement references a file that doesn't exist, I get an error for that page in my development environment (astro dev). While the error and the stack trace correctly point to the problematic line in the CSS (line 2 of the styles in the screenshots below), the center section refers to line 2 of the entire file (the wrong line).

All three sections should point to the same correct line, line 2 of the styles.

Screen Shot 2023-05-01 at 8 55 06 PM

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-vmnwzv

Participation

  • I am willing to submit a pull request for this issue.
@Princesseuh
Copy link
Member

Closing as a duplicate of #5465. There's a quite a few cases where the stacktraces are wrong, either due to some things not being linked up together, sourcemaps being wrong / missing etc, so we'll bundle it all in one issue to avoid cluttering too much

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

No branches or pull requests

2 participants