Closed amazingrando closed 6 months ago
@mikeethedude and @amazingrando I looked into this and followed Randy's steps to reproduce.
I had a different error message:
emulsify system install --repository https://github.com/emulsify-ds/emulsify-ui-kit.git --checkout main
System configuration errors: [
{
keyword: 'required',
dataPath: '/variants/0',
schemaPath: '#/properties/variants/items/anyOf/0/required',
params: { missingProperty: 'components' },
message: "should have required property 'components'"
},
{
keyword: 'anyOf',
dataPath: '/variants/0',
schemaPath: '#/properties/variants/items/anyOf',
params: {},
message: 'should match some schema in anyOf'
}
]
ERROR The system install failed due to the validation errors reported above. Please fix the the errors in the "uikit" configuration and try again.
I'm hoping you have ideas as to how to fix this, Mike.
Ah. I think I do actually. Going to look at this soon this week here.
So the error you are getting @joetower is because https://github.com/emulsify-ds/emulsify-ui-kit/blob/main/system.emulsify.json doesn't contain a "components" key inside of the variants object. (See: https://github.com/emulsify-ds/emulsify-cli/blob/develop/src/handlers/systemInstall.ts#L229C40-L229C40) Should we make it so UI Kit provides some info on required components or at at try an empty set of components? Or I can make it so we check if we have components and then skip the whole thing when it isn't setup. (Might be preferred @amazingrando ?)
@amazingrando This would fix this problem from the UI kit side. https://github.com/emulsify-ds/emulsify-ui-kit/pull/115
Resolved by #115
Describe the bug I'm trying to install the Emulsify UI Kit component library with the Emulsify CLI and I cannot.
To Reproduce Steps to reproduce the behavior:
emulsify system install --repository https://github.com/emulsify-ds/compound.git --checkout [branch/tag/commit]
toemulsify system install --repository https://github.com/emulsify-ds/emulsify-ui-kit.git --checkout main
Unable to install system assets and/or required components: Error: ENOENT: no such file or directory, lstat '/Users/oest/.emulsify/cache/systems/aafceee31da1cd49aa7dc52ebb708c40/compound/src/components/00-base/01-colors'
I updated system.emulsify.json using the instructions in the docs.
Any help would be appreciated. TY.