-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manifest doesn't recognize or emit media files for inherited templates. #174
Comments
Hi, /**
/**
/**
But turns out when tried to deploy it is show this issue that the image doesn't exist: |
I'm having the same issue. I inherited a template and the images are in en.yml. I can see these working in disconnected mode. but when I try to deploy the app I get |
Description
Given the following manifest declarations:
and corresponding component data:
It is expected that the manifest would recognize the
/data/media/img/bmw.jpg
value provided for theCarTeaser
component and copy that file to the/sitecore/manifest
folder during manifest generation. The import process would then upload that file to the Sitecore media library during import.However, the file is not recognized or copied to the manifest folder. And the import process then reports errors that the file can't be found.
The issue is that the
buildMediaOutput
function in packages/sitecore-jss-manifest/src/generator/pipelines/generateMedia/utils.ts does not resolve fields that a template may inherit, it only inspects fields that are directly assigned to a template.The solution is to resolve inherited templates/fields when building media output for the manifest.
The text was updated successfully, but these errors were encountered: