Window.strapi.flags being undefined

System Information
  • Strapi Version: 4.11.7
  • Operating System: macos
  • Database: sqLite
  • Node Version: 16.20.0
  • NPM Version:
  • Yarn Version: 1.22.22

Hi everyone,
I have an issue as strapi frontend doesn’t load and I’m getting a console error “TypeError: Cannot read properties of undefined (reading ‘nps’)”. It’s the same as this one, but I don’t have discord to check how was it solved.
Can anyone help?
Build made from exactly same code works without problems:
image
BR

Hi were you able to fix this? I am facing the same issue.

I decided to upgrade to 4.25 and the problem disappeared.