Open Strainy opened 7 years ago
Require is build into node. What version of node are you using? Try the new react-cognito-example repo.
This error commonly occurs when you are trying to execute node.js in the browser.
You may be interested in browserify (http://browserify.org/) or including
Hi all,
Having trouble getting set up. When importing anything from react-cognito into my project I'm getting a "Require is not defined" error. Here are the steps I've taken to install:
npm install --save-dev react-cognito
npm install --save-dev amazon-cognito-identity-js
Am I missing anything here? Have just followed the docs at: https://doc.esdoc.org/github.com/isotoma/react-cognito/manual/installation/install.html