Recibo este mensaje de error cuando intento cargar un archivo JS en Ionic.
Me aseguré de que la ruta sea correcta, pero aun así termino con esta respuesta.
Mi índice.html:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"/> <title>Ionic App</title> <base href="/"/> <meta name="color-scheme" content="light dark"/> <meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/> <meta name="format-detection" content="telephone=no"/> <meta name="msapplication-tap-highlight" content="no"/> <script type="text/javascript" src="galerie.js"></script> <!---------------------JS-file-> <link rel="icon" type="image/png" href="assets/icon/favicon.png"/> <!-- add to homescreen for ios --> <meta name="apple-mobile-web-app-capable" content="yes"/> <meta name="apple-mobile-web-app-status-bar-style" content="black"/> <link rel="manifest" href="manifest.webmanifest"> <meta name="theme-color" content="#1976d2"> <link rel="manifest" href="manifest.webmanifest"> <meta name="theme-color" content="#1976d2"> <link rel="manifest" href="manifest.webmanifest"> <meta name="theme-color" content="#1976d2"> </head> <body> <app-root></app-root> <noscript>Please enable JavaScript to continue using this application.</noscript> </body> </html>
Todavía soy nuevo en Ionic, así que realmente no sé dónde podría estar el problema.