Update File Feature

Hello Community,

I'm trying to use the "update file" feature to update a source file in a studio package project. Every time I click the option, an error message pops up which reads "the file type of the update document is different than the file type of the original document". On the other hand, when I use the same function for a studio project (not package), it works fine. 

Is the function unavailable for the package projects?

Thanks in advance!