Skip to main content

Site-styles are not building locally and CSS changes are not updated

Symptoms

  • Site-styles are not building locally.

  • Site-styles are not changing when style updates are made.

  • Webpack is not showing any errors.

  • Other code changes are working correctly.

Cause

siteStyles do not match with valid sites in Site Service. The style builder script is failing because it needs to be able to generate styles that match valid sites.

Also, it's possible that "buildSiteStyles":true is not added to blocks.json.

Solution

Make the sites (siteStyles) listed in the environment file match the site _id configured in Arc XP.

Add "buildSiteStyles":true to blocks.json.

More Information