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 · 0 comments
Open

SCSS alias import not work #22

danilkinkin opened this issue Nov 5, 2024 · 0 comments

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";
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