OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Vue 3 warning "tags with side effects" is breaking Production

  • Thread starter Thread starter Sky
  • Start date Start date
S

Sky

Guest
I've recently upgraded from Vue 2 to Vue 3, and there are a few parts of my app that in development mode give the warning:

[Vue warn]: Template compilation error: Tags with side effect (<script> and <style>) are ignored in client component templates.

In Vue 2, these warnings were just hidden in production. However, in Vue 3, pages with these warnings completely break and the screen goes blank. They run fine in development.

It's not practical for me to remove all of these <script> tags because they are inserted dynamically by my CMS (Shopify).

Is there any way for me to catch these errors in production so they don't take down my site?

<p>I've recently upgraded from Vue 2 to Vue 3, and there are a few parts of my app that in <code>development</code> mode give the warning:</p>
<blockquote>
<p>[Vue warn]: Template compilation error: Tags with side effect (<script> and <style>) are ignored in client component templates.</p>
</blockquote>
<p>In Vue 2, these warnings were just hidden in <code>production</code>. However, in Vue 3, pages with these warnings completely break and the screen goes blank. They run fine in <code>development</code>.</p>
<p>It's not practical for me to remove all of these <code><script></code> tags because they are inserted dynamically by my CMS (Shopify).</p>
<p>Is there any way for me to catch these errors in production so they don't take down my site?</p>
 

Latest posts

P
Replies
0
Views
1
Paras Chouhan
P
Top