Custom taxonomy terms not showing as list Gutenberg Editor WordPress

I found the problem. I was registering a custom post type with the same name ‘location’ as the taxonomy. Renaming one of the two did the job for me.

error code: 523