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

SCSS alias import not work #22

Open
danilkinkin opened this issue Nov 5, 2024 · 1 comment
Open

SCSS alias import not work #22

danilkinkin opened this issue Nov 5, 2024 · 1 comment

Comments

@danilkinkin
Copy link

deno.json

{
  "imports": {
    "@components/": "./src/components/",
    "@utils/": "./src/utils/",
    "@theming/": "./src/theming/",
  }
}

I use import styles in index file

import "./src/theming/baseline.scss";

I got an error when try to start vite.

Error: The following dependencies are imported but could not be resolved:
  @theming/baseline.scss

ts/tsx/js files import correctly, problem exactly with scss files, but vite work with these files out the box

If I replace the relative imports, works fine

import "./src/theming/baseline.scss";
@danilkinkin
Copy link
Author

I came back to this issue again, hoping it would work now, but no, same problem. And I can tell you more, it doesn't work with scss/svg/png.

It doesn't work with anything except jsx/tsx/ts/js. It is expected behavior, or it is should support not only these extensions?

And anybody faced with this problem too?

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

1 participant