Module parse failed: Unexpected token for module.scss file


This Content is from Stack Overflow. Question asked by Quang Khải Đàm

I have an error with module.scss as belowenter image description here

Error log: You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file

My webpack config for scss.module:

              test: /.module.(scss|sass)$/,
              exclude: /.(scss|sass)$/,
              use: [
                  loader: 'css-loader',
                  options: {
                    modules: {
                      mode: 'local'

And this is a content of my Login.module.scss:

.Container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    .ButtonLoginGoogle {
        // ...

Does anyone know how to solve this error? Please give me an instruction. Thank a lot


This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?