react-scan icon indicating copy to clipboard operation
react-scan copied to clipboard

If I add the "async" attribute to the <script> that loads react-scan, the console logs an error

Open Traveller23 opened this issue 2 months ago • 2 comments

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: image

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.

Traveller23 avatar Dec 19 '24 11:12 Traveller23