Need some help with a simple query.
I'm looking to incorporate this widget code from CodePen into my Nuxt.js project.
The code works fine when using RAW HTML:
<!DOCTYPE html>
<html>
<head></head>
<body>
<dev-widget data-username="saurabhdaware"></dev-widget>
<script src="https://unpkg.com/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="5a3e3f2c772d333e3d3f2e1a6b746a7469">[email protected]</a>/dist/card.component.mjs" type="module"></script>
</body>
</html>
However, when attempting to add this dev widget into my nuxt.js project on one of the pages, it's not functioning properly.
Here is the code snippet:
<template>
<div class="container">
<div>
<dev-widget data-username="saurabhdaware"></dev-widget>
</div>
</div>
</template>
<script>
export default {
layout: "default",
};
</script>
<script src="https://unpkg.com/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="c7a3a2b1eab0aea3a0a2b387f6e9f7e9f4">[email protected]</a>/dist/card.component.mjs" type="module"></script>
An error keeps popping up:
Unknown custom element: < dev-widget >
Any suggestions on what might be causing this issue?