custom theme ,add media not showing images in media library
i am beginner with theme development, created a theme following an online tutorial. when i try to add images in a post using the add media button , it opens but shows no images , the loader just keeps spinning. But accessing the media library directly shows there are images in it.
what am i missing here ? changing the theme to any of the wordpress themes corrects the issue.But i would like to use my theme.