Compilation on the development server is successful. But after subtracting the line below into the index.pug file, a critical error is thrown.
- const s = require('./index.sass');
If the line "MiniCssExtractPlugin.loader" is removed from webpack.dev.ts, then the compilation is successful.
The error looks something like this:
{some path}/node_modules/neo-async/async.js:16
throw new Error('Callback was already called.');
^
Error: Callback was already called.
at throwError ({some path}/node_modules/neo-async/async.js:16:11)
at {some path}/node_modules/neo-async/async.js:2818:7
at processTicksAndRejections (internal/process/task_queues.js:75:11)
Hello. In the course of my experiments I encountered a very interesting error.
I wanted to combine pug (jade) with css modules. To do this, I configured webpack as follows.
Compilation on the development server is successful. But after subtracting the line below into the index.pug file, a critical error is thrown.
If the line "MiniCssExtractPlugin.loader" is removed from webpack.dev.ts, then the compilation is successful.
The error looks something like this: