reactjs Cannot read property 'keys' of undefined

前端 未结 5 1201
星月不相逢
星月不相逢 2020-12-15 03:19

I am learning reactjs through a tutorial and ran into this error. That says \"Cannot read property \'keys\' of undefined\" My code is very minimal so I assume that it has to

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-15 04:13

    
    

    This is the version of babel-core which isn't giving me the error as shown below:

    If you want to use the latest version, You can use the latest standalone version. (as per 22-Nov-2018)

    
    

    But this gives the following warning :

    "You are using the in-browser Babel transformer. Be sure to precompile your scripts for production - https://babeljs.io/docs/setup/"

提交回复
热议问题