I'm attempting to add <script> tags to my astro pages/components, and suddenly the hot-module reload starts throwing the aforementioned error. A search of Discord reveals this is a repeating problem across multiple versions of Astro...the only solution I've seen posted is "restart your dev server". The problem is, after restarting the dev server, the problem comes back instantly the moment I touch a <script> tag again. As is, Astro is unusable once I start using <script> tags. If I touch a <script> tag, which causes the problem, then undo the change I made...the error continues anyway and I need to restart the dev server. I'm getting nowhere.
My dependencies:
"dependencies": {
"@astro-community/astro-embed-youtube": "^0.4.1",
"@astrojs/mdx": "^1.1.3",
"@astrojs/rss": "^2.4.3",
"@astrojs/sitemap": "^1.3.2",
"@sanity/astro": "2.1.1",
"@sanity/client": "^6.4.12",
"@sanity/image-url": "^1.0.2",
"astro": "^3.4.0",
"astro-portabletext": "^0.9.6",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sanity": "*"
}
Thoughts?