Hello, I'm trying to use an alias so that I can import my css with this import line:
import "@styles/variables.scss";
I thought I'd just need to adapt my tsconfig.json by adding the baseUrl and paths:
{
"extends": "astro/tsconfigs/strict",
"baseUrl": ".",
"paths": {
"@styles/*": ["src/styles/*"]
}
}
Unfortunately I get an error when it compiles:
error Cannot find module '@styles/variables.scss' imported from '/Users/dsa/Documents/Local/dsa/src/components/navbar/NavbarDesktopMenu.astro'
Error: Cannot find module '@styles/variables.scss' imported from '/Users/dsa/Documents/Local/
dsa/src/components/navbar/NavbarDesktopMenu.astro'