Deploy issues, build failed to compile

I am a newbie and I have been unable find any help trying to get to the root of this issue, it compiled successfully on my local machine.
I would greatly appreciate pointers.

My account: Netlify App

Affected site:

My site’s build command is; npm run build

Hi would you mind attaching a link to your full deploy log?

Thank you very much for your response.
Here’s the link you requested

I don’t think this is a Netlify issue. Can you build this locally using npm run build command?

Thank you very much.
I encountered the same issue using npm run build command.
Do you have any idea how I can resolve it? It’ll be very helpful.

It appears its my post css loader that’s the culprit

“use strict”;

module.exports = require(“./index”).default;

This is what i have in my cjs.js, it’s where the error points to.
Please advise.

Hi @Toluwashe ,

The next debugging step is to ensure the package versions we use to build match the ones you use in your own development environment. You can find the settings for these in our Build Settings doc. That’s the leading cause of build failures. :slight_smile:

I appreciate your assistance, I’ll do just that.
Thank you very much.