I am currently utilizing VueJs in the development of a Shopify theme using Shopify Cli and Store 2.0. To incorporate Vue, I initially attempted to install it through a CDN script within my theme.liquid file.
<script src="{{ 'vue.global.js' | asset_url }}"></script>
While this method allowed Vue Devtools to detect VueJs successfully, it also triggered an error during the theme check:
Missing async or defer attribute on script tag
Upon adding the async or defer attribute to the script tag as suggested, Vue Devtools could no longer detect VueJs properly.
https://i.sstatic.net/fRYbS.png
If anyone knows how to resolve this issue and add Vuejs to Shopify without encountering this error, please provide guidance. Thank you!