The issue at hand:
Let's take a look at this project structure:
/src
/public
/styles
/general
/tables.scss
/secure
/components
/someTable1
/someTable.component.ts
/someTable.component.css
/someTable2
The goal is to import the default styles from "table.scss" located at
src/app/public/styles/general/tables.scss
using an alias, similar to an Angular module. For example:
import { TableScss } from '@styles/general/table.scss';
@Component({
selector: 'some-table-1',
templateUrl: './some-table-1.component.html',
styleUrls: ['./some-table-1.component.css', TableScss]
})
Does that make sense? I have already registered the alias in tsconfig.app.json but I am encountering the following error:
ERROR in src/app/secure/components/some-table1/some-table-1.component.ts(x,y): error TS2307: Cannot find module '@styles/general/table.scss'.
Any suggestions? Is there another way to achieve this?