web part – SharePoint SPFx webpart not showing latest build

I’m building a SharePoint SPFx react webpart.

I’m developing on a local level using workbench with a link similar to this:

Everything works great, however about 2 weeks ago when running gulp bundle --ship I started receiving a The build failed because a task wrote output to stderr. Exiting with exit code: 1 error.

I was reading here that I can use --debug instead. https://stackoverflow.com/questions/50968594/gulp-bundle-ship-the-build-failed-because-a-task-wrote-output-to-stderr

After running gulp bundle --debug and gulp package-solution --ship. I then replace the webpart in the App Catalog. This used to work perfectly fine but recently it stopped working. No matter what I do the webpart on the live SharePoint site will not update.

In my package-solution.json I change my version

  "$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json",
  "solution": {
    "name": "app-webapp-client-side-solution",
    "id": "2af8ae0f-26e0-41c9-bd37-1e7fb1963074",
    "version": "",
    "includeClientSideAssets": true,
    "isDomainIsolated": false
  "paths": {
    "zippedPackage": "solution/procurement-webapp.sppkg"

I then remove the webpart from my page, delete the webpart from the site contents and recycling bin. Then delete it off the App Catalog. When I install the app in my App Catalog and add it again to my SharePoint site, when I hover it shows it’s new and shows the new version. I then add the web part on the page again and still it shows the old one. I tried to clear cache 100 times.

I also noticed sometime I’ll rebuild a few times with minor changes and it will finally update on the live site side but with a build from 3 versions ago. I’ve added the webpart and waited 3 days hoping it takes time to refresh and still doesn’t work.

Any ideas?