'React' was used before it was defined

前端 未结 14 2009
傲寒
傲寒 2020-12-29 19:28

I am working with create-react-app + typescript + eslint application and during build have such error:

Line 1:8:  \'React\' was used before it was defined  @t         


        
14条回答
  •  孤城傲影
    2020-12-29 20:04

    deleting the node_modules folder and reinstalling it worked for me. I'm using yarn as package manager.

提交回复
热议问题