Skip to content

Commit 0d1012b

Browse files
guotietimse
authored andcommitted
Update README.md
1 parent 5f623f5 commit 0d1012b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,15 @@ export const someClassSayWhat: string;
131131
### Example in Visual Studio Code
132132
![typed-css-modules](https://cloud.githubusercontent.com/assets/749171/16340497/c1cb6888-3a28-11e6-919b-f2f51a282bba.gif)
133133

134+
If you encounter the following errors:
135+
```
136+
error TS1192: Module '"xxxxx/xxxx/src/style.sass"' has no default export.
137+
```
138+
maybe you should export the styles as following:
139+
```
140+
import * as styles from './style.sass';
141+
```
142+
134143
## Support
135144

136145
As the loader just acts as an intermediary it can handle all kind of css preprocessors (`sass`, `scss`, `stylus`, `less`, ...).

0 commit comments

Comments
 (0)