auth0-blog / react-flux-jwt-authentication-sample

Sample for implementing Authentication with a React Flux app and JWTs
589 stars 102 forks source link

Uncaught ReferenceError: reactMixin is not defined #10

Open rxw1 opened 9 years ago

rxw1 commented 9 years ago

Hi there,

the project doesn't run as of commit cfeb75b9dc229c81a769c6828614d8dc642b1153. After npm start the console says Uncaught ReferenceError: reactMixin is not defined249.../services/AuthService @ build.js:15s @ build.js:1(anonymous function) @ build.js:1245../actions/LoginActions @ build.js:15s @ build.js:1e @ build.js:1(anonymous function) @ build.js:1.

Both src/components/Login.jsx and src/components/Home.jsx have calls to reactMixin. I'm not sure, but I guess that after these parts are transformed by babel and reactMixin becomes _reactMixin, that somehow breaks things. Just guessing.

rafialikhan commented 9 years ago

Same issue - ReactMixin is not defined 29274

Windows 7 Professional Node 0.10.18 NPM 2.1.9 Babel 6.1.1 (also tried 6.0.2) React Mixin Version 1.2.3

olegakbarov commented 9 years ago

does https://github.com/auth0/react-flux-jwt-authentication-sample/pull/11 works for you?

G-Lex commented 9 years ago

That certainly does fix it @olegakbarov