title: Alpine JS - Error : Uncaught TypeError: Cannot read properties of undefined (reading '_x_refs')
body: <p>Hi I am using CDN link for alpine: 'https://cdnjs.cloudflare.com/ajax/libs/alpinejs/3.9.0/cdn.min.js'</p>
  <p>and I did this </p>
   
  <p>And in live server I am getting this error in console:
  <a href="https://i.stack.imgur.com/gHGys.png" rel="nofollow noreferrer">Check Screenshot for error</a></p>
  <p>Please tell me what is the issue.</p>
  <pre><code>Uncaught TypeError: Cannot read properties of undefined (reading '_x_refs')
      at Function.Xr.inline (cdn.min.js:5:32320)
      at u (cdn.min.js:5:1964)
      at cdn.min.js:5:4403
      at Array.forEach (&lt;anonymous&gt;)
      at cdn.min.js:5:4392
      at M (cdn.min.js:5:3335)
      at cdn.min.js:5:4361
      at Xt (cdn.min.js:5:1687)
      at S (cdn.min.js:5:4353)
      at cdn.min.js:5:3723
  Xr.inline @ cdn.min.js:5
  u @ cdn.min.js:5
  (anonymous) @ cdn.min.js:5
  (anonymous) @ cdn.min.js:5
  M @ cdn.min.js:5
  (anonymous) @ cdn.min.js:5
  Xt @ cdn.min.js:5
  S @ cdn.min.js:5
  (anonymous) @ cdn.min.js:5
  (anonymous) @ cdn.min.js:1
  Je @ cdn.min.js:1
  </code></pre>
  <p>The code :</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang=&quot;en&quot;&gt;
  &lt;head&gt;
      &lt;meta charset=&quot;UTF-8&quot;&gt;
      &lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot;&gt;
      &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
      &lt;title&gt;Document&lt;/title&gt;
      &lt;script src='https://cdnjs.cloudflare.com/ajax/libs/alpinejs/3.9.0/cdn.min.js'
          integrity='sha512-91GIHlafcLQRUuQqlBCEF/qOecSTcBkSsaPWP3jgstLpwZ8orjgDlPgJshIq+x9t8wFcrGEjUKSMRN3K5ibq6Q=='
          crossorigin='anonymous'&gt;&lt;/script&gt;
      &lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css&quot;
          integrity=&quot;sha512-wnea99uKIC3TJF7v4eKk4Y+lMz2Mklv18+r4na2Gn1abDRPPOeef95xTzdwGD9e6zXJBteMIhZ1+68QC5byJZw==&quot;
          crossorigin=&quot;anonymous&quot; referrerpolicy=&quot;no-referrer&quot; /&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;header x-ref=&quot;header&quot;&gt;
          header code here
      &lt;/header&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>