You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried by adding <script src="//cdn.jsdelivr.net/npm/@posva/[email protected]"></script> but I get the error: "Uncaught SyntaxError: Cannot use import statement outside a module" if I add type="module" to the script tag, then I get a different error: "Uncaught TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../"."
I'm guessing this isn't bundled to be used directly in html?
The text was updated successfully, but these errors were encountered:
To use it in HTML without type="module", you need to use the global build (like with Vue) and I'm realising both, vue and vue-router are not correctly connected to the CDN. For vue-router you need to use the vue-router.global.js (same as vue)
What I'm unsure is what should be the version pointed by jsdelivr by default, we can change it with jsdelivr in the package.json file and should be consistent. Previously, in vue, we would expose the minified version, that would be global.prod instead global. Let's keep this open for discussion
posva
changed the title
Use directly in html?
what version should be used by jsdelivr
Mar 29, 2020
Is there a way to try this directly in html?
I've tried by adding
<script src="//cdn.jsdelivr.net/npm/@posva/[email protected]"></script>
but I get the error: "Uncaught SyntaxError: Cannot use import statement outside a module" if I addtype="module"
to the script tag, then I get a different error: "Uncaught TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../"."I'm guessing this isn't bundled to be used directly in html?
The text was updated successfully, but these errors were encountered: