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!
回答済み 10ヶ月前
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年前
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