Which project does this relate to?
Start
Describe the bug
If we insert an object like below into the scripts in the head of the __root.tsx file it will cause a Minified React error error.
scripts: [
{
async: true,
src: `https://www.googletagmanager.com/gtag/js?id=G-XXXXXX`,
},
]
Error:
Your Example Website or App
https://stackblitz.com/edit/github-zpekad3w?file=src%2Froutes%2F__root.tsx
Steps to Reproduce the Bug or Issue
- run
npm run build
- start production server
npm run start
- open production URL
- check browser console
Expected behavior
Should not display errors
Screenshots or Videos
No response
Platform
- Router / Start Version: 1.157.18
- OS: Linux
- Browser: Chrome
- Browser Version: 144.0.7559.110
- Bundler: vite
- Bundler Version: 7.3.1
Additional context
No response