Here is the module which I want to deploy on the server and the files which should be shown in the Style Library, when deploying them without type ghostale in library, all go good and well, no errors, but as soon as I put the type ghostableInLibrary, I recieve the following error:
Error occurred in deployment step 'Activate Features': Failed to instantiate file "filepath" from module Style Library: The specified list does not exist.
I understand what error says, but how can it be? The list does exists and it has the subfolders and everything, so why do I get this strange error? And how to solve this?
<Module Name="Style Library" RootWebOnly="true">
<File Path="Style Library\Styles\Style.css" Url="Style Library/Styles/Style.css" type="GhostableInLibrary"/>
<File Path="Style Library\Images\logo.png" Url="Style Library/Images/logo.png" type="GhostableInLibrary"/>
<File Path="Style Library\Images\banner.png" Url="Style Library/Images/banner.png" type="GhostableInLibrary"/>
</Module>
I did find some old post here about that problem, but there wasn't acceptable solution provided, so that is why I created a new post.