S
S
Sergey Kondrashevsky2020-10-26 03:06:28
JavaScript
Sergey Kondrashevsky, 2020-10-26 03:06:28

Why is a compilation error popping up in Webpack?

Hello!
Please help me decide

problem
5f961992b8c8f787623191.jpeg

error code
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Invalid CSS after "export {};": expected 1 selector or at-rule, was "{}"
        on line 2 of src/assets/sass/main.sass
>> export {}; {}

   ----------^
which appears when I run the build assembly. Here is the git repo with the project.
I don’t understand what the problem is, I googled it but didn’t really find anything or found it but didn’t help.
How to solve this problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
profesor08, 2020-10-26
@Seryoga96

What kind of mistake is written there in white on black and a link to the guide is given. Dare.

S
Sergey delphinpro, 2020-10-26
@delphinpro

otherwise it will go to src from the production folder and take pictures from there.

Who told you this?
In this case, webpack will process the images with its own loaders, and copy them to the dist folder when building. They will display correctly anyway.
If you do not want images to be processed by webpack loaders, then specify the absolute path to them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question