question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

  • [√] Read the docs.
  • [√] Make sure this is a Vite issue and not a framework-specific issue. For example, if it’s a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.

Describe the bug

在对于被使用别名引入的scss文件,在被引入的这个文件中所使用别名引入的静态文件没有被替换为正确的路径。

Reproduction

github链接

System Info

  • vite version: 2.0.1
  • Operating System: Mac OS 10.12
  • Node version: v13.14.0
  • Package manager (npm/yarn/pnpm) and version: npm/6.14.4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
chdjjcommented, Mar 3, 2021

@import "~sass/app.scss";

Loading SCSS file is normal, But I want to use aliases in the SCSS file as well. Use @import "~sass/app.scss"; is not working, But use @import "./assets/sass/app" is normal. I think it’s a bug.

1reaction
xiaohulucommented, Mar 25, 2021

Still Can't find stylesheet to import when I update to vite 2.1.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

AliasingBug - Martin Fowler
Aliasing occurs when the same memory location is accessed through more than one reference. Often this is a good thing, but frequently it ......
Read more >
Alias The Bugman Pest Control
Contact Alias the Bugman for Termite Inspections and Pest Control for bees, wasps, spiders, ants, rodents, bed bugs and more in North Liberty,...
Read more >
aliasing bug - Catb.org
aliasing bug : n. A class of subtle programming errors that can arise in code that does dynamic allocation, esp. via malloc(3) or...
Read more >
99203 - (bz-alias) alias for a bug - Bugzilla@Mozilla
Need a way to address a bug using a string moniker. More specifically we'd like to be able to add an alias to...
Read more >
Alias The Bugman: Home
From spiders to ants, cockroaches, bedbugs, and beetles, we offer an array services to rid your home and business of nearly any kind...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found