2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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!
répondu il y a 9 mois
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?
Contenus pertinents
- Réponse acceptéedemandé il y a 7 mois
- demandé il y a 2 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
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