Hi Alexander,
I have created the template from the subsite and it has all the SPJS related document library within the subsite and it is working well before I took this subsite as site template for creating new subsites.
It is not working after creating new subsite from the modified subsite template.
Hope it helps.
Thanks