baoliay2008 / lccn_predictor

LeetCode Contest Rating Prediction
https://lccn.lbao.site
MIT License
570 stars 22 forks source link

not able to start the front end by following read me instructions #7

Closed amitpant14 closed 1 year ago

amitpant14 commented 1 year ago

I am not able to run the front end of the application. On running the command npm start, I get below error:

  Line 22:   'React' must be in scope when using JSX  react/react-in-jsx-scope
  Line 23:   'React' must be in scope when using JSX  react/react-in-jsx-scope
  Line 24:   'React' must be in scope when using JSX  react/react-in-jsx-scope
  Line 25:   'React' must be in scope when using JSX  react/react-in-jsx-scope
  Line 26:  'React' must be in scope when using JSX  react/react-in-jsx-scope
  Line 27:  'React' must be in scope when using JSX  react/react-in-jsx-scope
  Line 28:  'React' must be in scope when using JSX  react/react-in-jsx-scope
  Line 34:  'React' must be in scope when using JSX  react/react-in-jsx-scope
  Line 40:  'React' must be in scope when using JSX  react/react-in-jsx-scope
  Line 41:  'React' must be in scope when using JSX  react/react-in-jsx-scope
  Line 42:  'React' must be in scope when using JSX  react/react-in-jsx-scope
  Line 42:  'React' must be in scope when using JSX  react/react-in-jsx-scope
  Line 43:  'React' must be in scope when using JSX  react/react-in-jsx-scope
  Line 45:  'React' must be in scope when using JSX  react/react-in-jsx-scope
  Line 49:   'React' must be in scope when using JSX  react/react-in-jsx-scope
  Line 50:   'React' must be in scope when using JSX  react/react-in-jsx-scope
baoliay2008 commented 1 year ago

Hi, @amitpant14 . I have already tried using a different empty machine and Docker environment, and did not encounter any issues. Could you please check this 'React' must be in scope when using JSX react/react-in-jsx-scope?

amitpant14 commented 1 year ago

It seems there was some issue with the versions I used. Doing a clean install fixed this.