I've requirement to display the top level site (Made with modern communication site template ) library to it's sub sites. Whenever there is a change in top level library it should reflect in sub sites library as well.
I got the below reference and tried, but my webpart not showing while creating new app though the template available in Webpart gallery.
https://www.sharepointdiary.com/2015/08/display-list-from-top-level-site-subsite-in-sharepoint.html
I also tried to enable the SharePoint Content Query web part (or Content Search Web Part) by enabling publishing feature turned ON, but getting unexpected error while activating the feature.
Appreciate your help on this.