2 Risposte
- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
0
Hi, maybe you can try change the file of script in the HTML page by .js in order to communicate with the react code
Also, I can share a document that could be helpful in your case https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/authenticate-react-application-users-by-using-amazon-cognito-and-aws-amplify.html
I expect it works!
con risposta 9 mesi fa
0
Have reviewed this post to see if this is the cause?
https://stackoverflow.com/questions/56632496/failed-to-load-module-script
It doesn't work. The post you shared is about Angular App, but mine is React. Do you have any other ideas?
Contenuto pertinente
- AWS UFFICIALEAggiornata 3 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
- AWS UFFICIALEAggiornata 2 anni fa
Change the file of script by .js does not work, because all my other function files are written in tsx format
Hi Wenhan, you may need to configure Apache or Ngnix and include the MIME type for *.mjs files. Use this in order to configure in a better way the web server