Hey, so I'm trying to implement Vercel Analytics in my vercel project. I saw some examples, but they used ES6 method to import the inject function. I try to use import function, here is my code:
<!-- ... --><script type="module"> import { inject } from '@vercel/analytics'; inject();</script><!-- ... -->And this is the error:
Uncaught TypeError: Failed to resolve module specifier "@vercel/analytics". Relative references must start with either "/", "./", or "../".I installed the package using npm install @vercel/analytics.