react-scan
react-scan copied to clipboard
If I add the "async" attribute to the <script> that loads react-scan, the console logs an error
This is my entry file (layout.tsx):
...
return (
<html lang={locale}>
<head>
<script src="https://unpkg.com/react-scan/dist/auto.global.js" async />
</head>
...
The error is:
It does report an error, but it doesn't seem to affect the functionality. And, after removing "async", the error disappears.
Environment: next.js 14.2.20, app router.