The code returns the following error:
Encountered a script tag while rendering React component. Scripts inside React components are never executed when rendering on the client. Consider using template tag instead (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template).
Revise the code to address the error.
I was previewing: /sous-traitant/connexion
The connexion page itself has no <script> tag — the issue comes from the dashboard layout which uses a <script> tag for the auth guard. Let me check it:
The layout is clean too. The <script> tag must be coming from somewhere in the header or sidebar pulled during the git sync. Let me check:
Found it. The <Script> from next/script is used correctly but the v0 preview runtime doesn't support it. The fix is to use next/script with strategy="afterInteractive" which is already set — the issue is that in the v0 sandbox the Script component from next/script is not supported. I need to replace it with a standard <script> tag moved outside the React tree, or simply remove it since it's a HubSpot tracking script not needed for the dashboard preview.
The HubSpot <Script> tag was pulled in from the GitHub repo during the sync and was causing the error — the v0 preview runtime doesn't support next/script. I've removed both the import and the script tag from app/layout.tsx. The HubSpot tracking can be re-added when deploying to production via Vercel directly.
J'ai tout le contexte. Je vais réécrire la page avec une logique par type de dossier : chaque type a ses propres onglets, étapes de suivi, champs d'informations et section compte rendu.
Chaque type de dossier a maintenant ses propres contenus dans tous les onglets. Installation : tracking colis, matériel à fournir, photos + PV, détails techniques et véhicule. Étude de faisabilité : équipements de mesure, rapport de visite, contexte électrique et objectifs. SAV : pièces et outillage, rapport d'intervention + bon signé, description de panne, fiche matériel défectueux. Audit : check-list audit, rapport + attestation de conformité, contexte réglementaire et périmètre d'audit. Le type est déduit de l'ID pour la démo (ID 1 = installation, 2 = étude, 3 = SAV, 4 = audit).
The code returns the following error:
Encountered a script tag while rendering React component. Scripts inside React components are never executed when rendering on the client. Consider using template tag instead (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template).
Revise the code to address the error.
I was previewing: /