You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When installing a component in Emulsify Drupal if the component includes a library to be attached like a JavaScript file, then the attachment should be names-spaced under the theme.
Additionally, the attachment should be defined in THEME_NAME.libraries.yml file if it is not already defined.
Current Behavior
The emulsify namespace is used and causes JavaScript functionality to fail.
Possible Solution
After adding the component, Emulsify CLI should replace emulsify with the specific theme name much like how it does it in .cli/init.js:89.
Steps to Reproduce (for bugs)
Add the tabs component from compound; emulsify component install tabs
Look into the twig file of the newly added component: @components/02-molecules/tabs/tabs.twig
You will see the attached library is name-spaced under emulsify not the actual theme.
Your Environment
Version used: 1.5.0
Browser Name and version: Google Chrome v96.0.4664.110
Operating System and version (desktop or mobile): macOS Big Sur v11.6.1
The text was updated successfully, but these errors were encountered:
Oh, dang! Didn't think of that. I've added this to the Emulsify Project board. We'll prioritize it with the other tickets on the first Thursday of the month.
Expected Behavior
When installing a component in Emulsify Drupal if the component includes a library to be attached like a JavaScript file, then the attachment should be names-spaced under the theme.
Additionally, the attachment should be defined in
THEME_NAME.libraries.yml
file if it is not already defined.Current Behavior
The
emulsify
namespace is used and causes JavaScript functionality to fail.Possible Solution
After adding the component, Emulsify CLI should replace
emulsify
with the specific theme name much like how it does it in.cli/init.js:89
.Steps to Reproduce (for bugs)
emulsify component install tabs
@components/02-molecules/tabs/tabs.twig
Your Environment
The text was updated successfully, but these errors were encountered: