Amplify-js: Uncaught ReferenceError: require is not defined at Object.crypto (external "crypto":1)

Created on 2 Nov 2018  路  4Comments  路  Source: aws-amplify/amplify-js

Describe the bug
When we added aws-amplify for authentication with vuejs with the dev mode it is working fine. but when we build it for test and deployed on server it is giving this error

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'http://owl-verify.technovendors.com'
  2. Noting will show you on this.
    3 open dev-tool console
  3. See error

Expected behavior
should work with webpack

Auth Vue pending-close-response-required

Most helpful comment

@ngoyal16 how did you fix this?

All 4 comments

@haverchuck any update

@ngoyal16 - Apologies for the late reply. I don't see any app at the url you posted above. Perhaps you could supply an updated one? Also, which versions of aws-amplify or aws-amplify and aws-amplify-vue are you using?

I fixed the issue

@ngoyal16 how did you fix this?

Was this page helpful?
0 / 5 - 0 ratings