2 個答案
- 最新
- 最多得票
- 最多評論
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!
已回答 9 個月前
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?
相關內容
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 1 年前
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