I just trying to activate SharePoint Server Publishing in my modern site to be able to use search content query. I found the following message. How to activate SharePoint Server Publishing Infrastructure in modern site? Any Idea
SharePoint Server Publishing Infrastructure is a site collection scoped feature.
To activate this feature, you need to go
Site Settings > Site collection features and activate the feature from here first. After that, you will be able to activate the web scoped SharePoint Server Publishing feature by going to
Site Settings > Manage Site features.
Secondly, activation of these features is currently possible but is not a supported configuration.
Refer - Customize Modern sites