Module parse failed: Unexpected character ‘@’ (1:0) You may need an appropriate loader to handle thi

This problem occurred when using webpack 4 to package less file. It was unable to parse this file. After careful checking the code, we found that this is missing from the regular representation in webpack.config.js file, as shown in the figure below. Just add this.

Similar Posts: