Javascript file for components not loaded when in a template
tag
#12940
Labels
needs triage
Issue needs to be triaged
template
tag
#12940
Astro Info
If this issue only occurs in one browser, which browser is a problem?
Firefox
Describe the Bug
In my project, I use templates to load some components, and affect them with their respective Javascript script when they are cloned into the real deal.
It seems that Astro 5 changed how scripts are loaded and exclude scripts have at least one instance of them loaded into a
template
tag (even the others outside thetemplate
tag don't work)What's the expected result?
It should load the scripts even if they are only in a
template
tagLink to Minimal Reproducible Example
https://github.com/Aviortheking/astro-template-not-running-js
Participation
note :
It also happens on
5.1.4
released recentlyThe text was updated successfully, but these errors were encountered: