Next.js Discord

Discord Forum

how to fix eslint issue about using beforeInteractive with Script component used in app/layout.tsx

Unanswered
Champagne D’Argent posted this in #help-forum
Open in Discord
Champagne D’ArgentOP
I'm getting this eslint issue referencing https://nextjs.org/docs/messages/no-before-interactive-script-outside-document but it lives in /project/apps/web/src/app/layout.tsx. Is this a bug or how can I fix it? I have the following eslint stuff installed
    "eslint": "7.32.0",
    "eslint-config-custom": "*",
    "eslint-config-next": "^14.2.5",
    "next": "^14.2.5",

thanks.

0 Replies