Script Tags #134
Unanswered
LeoSonnekus
asked this question in
Q&A
Script Tags
#134
Replies: 2 comments 2 replies
-
Use Vue's <component is="script">
<!-- your js code -->
</componet> |
Beta Was this translation helpful? Give feedback.
0 replies
-
I want to pass menu items to vue component is it possible to do? Using component didn't work in my case ` <script >
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey Love the starter so far but I'm trying to add <script> tags on product sections, mostly the ones used in Dawn, that use some liquid code as well as Javascript or the script defining some JSON data
<script type="application/ld+json"> { "@context": "http://schema.org/",
on this section - main-product.liquid
Is this possible? do I need to define this with Vue or some other method?
My console is returning this error?
runtime-core.esm-bundler.js:6642 [Vue warn]: Template compilation error: Tags with side effect (<script> and <style>) are ignored in client component templates.
Apologies if this is a silly question this is my first time using a build tool for themes, appreciate the help in advance :)
Beta Was this translation helpful? Give feedback.
All reactions