New User here - deployment always failing from public github repo with exit code 2

I need advice to debug deploy

This is the first error I’m seeing in the log
10:11:43 PM: ERROR in ./src/css/main.css (./node_modules/mini-css-extract-plugin/dist/loader.js!./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src!./node_modules/sass-loader/dist/cjs.js!./src/css/main.css)

10:11:43 PM: Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):

10:11:43 PM: ModuleParseError: Module parse failed: Unexpected character ‘�’ (1:0)

However I haven’t made any changes to main.css as it was copied directly from the Hugo-strata theme.

Oh, and it runs as expected on my macbook at home.


Hello @devonps, it looks like your build process is failing due to the following:

4:11:43 PM:     [4] ./src/images/bg.jpg 281 bytes {0} [built] [failed] [1 error]
4:11:43 PM:         + 2 hidden modules
4:11:43 PM:     ERROR in ./src/images/bg.jpg 1:0
4:11:43 PM:     Module parse failed: Unexpected character '�' (1:0)
4:11:43 PM:     You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See 

Seems like the css portion of your build is trying to parse the image bg.jpg but I’m not sure why. Does it build if you remove that file?