Strapi frontend not loading (window.strapi.flags is undefined)

Hi all.

I have a Strapi installation (v4.8.2) where I have not made changes to the backend for quite a few months. I just pulled my repo again, installed packages and tried to run. I can see the login screen, but when I do login, the screen goes blank with a console error “TypeError: Cannot read properties of undefined (reading ‘nps’)”

It’s trying to read this from windows.strapi.flags which is undefined (see attached).

I’m a bit stuck. This is a Strapi version and setup that I have run locally many times, but not recently.

This topic has been created from a Discord post (1280420282246631435) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

Hi, were you able to fix this?

Hi <@772817256350089216> can you run yarn(or npm) why @strapi/strapi ?

and the same for @strapi/admin

You should see in your netwrok tab a call to /admin/project-type could you share the response ?

Thanks for the replies. I fixed it a while ago by deleting the tmp and cache folders, so I’m no longer able to reproduce.