Is it not coming in author or publish?
1. Check whether sling:resourcetype property value on content node is correctly mapped to apps folder path .
2. If its correct then check if component which you are trying to include is having the same name of jsp or html as its node name
Ex-
/apps
/project
/components
/testcomponent
testcomponent.html
Cq:dialog