When trying to insert a script tag into the <template> tag of a Vue component the following error is emitted. - Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.One could ask, why would you event want to include a <script> tag inside a template in Vue. The reason why I stumbled