2 Respostas
- Mais recentes
- Mais votos
- Mais comentários
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!
respondido há 9 meses
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?
Conteúdo relevante
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há 2 meses
- AWS OFICIALAtualizada há 2 anos
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