Code Monkey home page Code Monkey logo

Comments (5)

pstinnett avatar pstinnett commented on June 11, 2024

I was similarly scratching my head at the same thing this morning and found: laravel-mix/laravel-mix#3112

Essentially, a <script></script> tag inside a Vue app causing the same issue. In my case, I was able to move the in template vanilla JS out of the #app container and things worked fine.

from shopify-theme-lab.

sergejcodes avatar sergejcodes commented on June 11, 2024

Instead of writing the vanilla <script></script> tag inside the Vue app you should be able to use <component is="script"></component> tag and place your JS Code in there

<div id="app">
  <component is="style">
    ...
  <componet>

  <component is="script">
    ...
  </componet>
</div>

from shopify-theme-lab.

sk29110 avatar sk29110 commented on June 11, 2024

I will try. I also have a problem with shopify app using google map and yotpo royalty app. It provides javascript object however it's javascript object doesn't allow me to call functions in strict mode. Do you have solution to this?

from shopify-theme-lab.

n-va avatar n-va commented on June 11, 2024

Would really love a fix for this as there are various Shopify apps that inject script tags, for which there's not really a work around.

from shopify-theme-lab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.