title: How to include angular web component in angular project
body: <p>I want to use an angular web component in my angular app, so for example I try to include an angular component like <a href="https://itnext.io/angular-9-snake-web-component-96f61e63b158" rel="nofollow noreferrer">snakecomponent</a> in my angular project but for some reason, it works only in dev, when I use it in production I have a blank page and I don't see even the app component HTML, and I don't have any error in console.</p>
  <p>If I try to use http-server to see my project in production I see this error the first time I load it:</p>
  <blockquote>
  <p>DOMException: Failed to execute 'define' on 'CustomElementRegistry':
  the name &quot;ng-snake&quot; has already been used with this registry</p>
  </blockquote>
  <p>if you want to see the code is here
  <a href="https://stackblitz.com/edit/snake-components?file=src/index.html" rel="nofollow noreferrer">https://stackblitz.com/edit/snake-components?file=src/index.html</a>
  (I know probably in stackblitz script is not loaded right, but the code is the same I have)</p>