How to render Vue web component?

I have been using Vue3 for a little while and I am trying to separate my components into web components so I don’t load what’s not required and I increase page speed.

I’ve been watching various YouTube videos and reading various articles but I’m not sure how to do it properly.

I was following this article and I’ve managed to build my component but I can get it to render. I get the following error

Uncaught TypeError: Failed to resolve module specifier “vue”. Relative
references must start with either “/”, “./”, or “../”.

I have included vue cdn and my component

<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script type="module" src="{{ asset('js/newsletter-form-ce.js') }}"></script>

What is the right way to include my component and render it?