If using typescript, you might encounter an error Cannot find module './File.component.scss' or its corresponding type declarations.
Workaround
For now, you can create a .d.ts file in your project:
declare module "*.component.css" {
const content: string;
export default content;
}
declare module "*.component.scss" {
const content: string;
export default content;
}
declare module "*.component.sass" {
const content: string;
export default content;
}
When I have time, this'll be added into the package itself.
If using typescript, you might encounter an error
Cannot find module './File.component.scss' or its corresponding type declarations.Workaround
For now, you can create a
.d.tsfile in your project:When I have time, this'll be added into the package itself.