[Solved] HBuilderX Run uniapp Error: SassError: Invalid CSS after “}”: expected selector, was “,”

After the hbuilderx editor is updated to the latest version, sass reports an error. If you switch to the previous version, there will be no error

Error message:

Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Invalid CSS after " }": expected selector, was ","

Problems and solutions:

There is a problem with CSS writing. There may be a deviation between the prompted position and the actual position

The verification of the new version of hbuilderx editor is more strict. Just remove the comma at the corresponding position

Similar Posts: