bhubr / react-simple-oauth2-login

Simple React component for OAuth2 login - Supports Authorization Code and Implicit Grant flows.
MIT License
49 stars 31 forks source link

When I added to my project ,occured problem? #11

Open durdufatih opened 3 years ago

durdufatih commented 3 years ago

Hello , I added OAuth2Login to my project. I saw that problem. How to solve this problem

 ./node_modules/react-simple-oauth2-login/src/OAuth2Login.jsx 93:11
Module parse failed: Unexpected token (93:11)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process thi
s file. See https://webpack.js.org/concepts#loaders

    // eslint-disable-next-line react/jsx-props-no-spreading
>     return <button type="button" {...attrs}>{ children || buttonText }</button>;
   }
}
bhubr commented 3 years ago

Hi there! Sorry I didn't reply earlier. Didn't get the notification, or it got lost in the too many I had.

Some context would help me:

From what I see, it seems like the JSX isn't handled by the build tool.