Closed estebanpcastro closed 3 months ago
Can you share your twig file?
Sure here is
<div{{ attributes.addClass(classes) }}> {% block content %} {% embed 'web_foundation:button' with { button_html_tag: 'a', url: url, color: button_style, disabled: button_disabled, button_attributes: button_attributes } %} {{ link }} {{ icon_link|raw }} {% endembed %} {% endblock %}
As you can see, I'm trying to embed another component Button that already works, web_foundation is the custom theme and button component is part of the components folder
What have you configured for namespaces in the twig options for your vite.config.js
I've not seen that syntax before, I would have expect it would need @web_foundation/button/button.twig
if you have mapped @web_foundation somewhere.
Are you using something custom in Drupal to support web_foundation:button
?
There's no SDC support in this project - I'll need to investigate that
:tada: This issue has been resolved in version 1.3.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
When I use this kind of sintaxis to embed other twig file with SDC, I got an error
"Pre-transform error: Failed to resolve import" "Does the file exist? Plugin: vite:import-analysis"
Do you know if I need to add extra config, thanks in advance