I am using the following compiler options for a tool I am making and I am seeing an error when the compiler can't find the compiled scss file.
In other words, I have the following files:
import styles from './ClassA.module.scss';
var ClassA_module_scss_1 = require('./ClassA.module.scss');
Cannot find module ClassA.module.scss
When integrating webpack, you need the corresponding loaders to enable support for scss. You can find more details on configuring it to enable this at sass-loader docs. Before you should definitely have a look at the webpack docs to get a general understanding of how webpack and the loaders work. This can be somehow confusing in the beginning.
Please be aware that currently version 2 of webpack is still in development and you may encounter some tutorials that don't work for version 1.