keppelen / react-facebook-login

A Component React for Facebook Login
1.19k stars 403 forks source link

Can't resolve babel-loader #266

Open isabellachen opened 5 years ago

isabellachen commented 5 years ago

I npm i react-facebook-login and include it in my app. The app then failed to compile with the error:


./node_modules/react-facebook-login/dist/facebook-login-with-button.js
Module not found: Can't resolve 'C:\Users\ichen\Developer\plain\Strapi.POC\client\node_modules\react-scripts\node_modules\babel-loader\lib\index.js' in 'C:\Users\ichen\Developer\plain\Strapi.POC\client'

React app has babel loader 7 + installed. How can I get this component working?

isabellachen commented 5 years ago

Going into node_modules/react-facebook-login and changing the babel loader version to 8.0.5 (the one that is currently installed with CRA) solved the issue. I changed the version and npm run start on the app and it was working again. Maybe update the babel-loader version?