React Native error: Raw “ ” must be wrapped in an explicit Component

前端 未结 6 768
执笔经年
执笔经年 2021-01-19 14:27

Hi, I am having this error in react native and cannot figure out what is causing it. Help would be greatly appreciated.

Thank you

6条回答
  •  灰色年华
    2021-01-19 15:08

    I also encounter this error, but in my case I accidentally modified / auto formatted some .js files and messed up the JSX. And I cannot easily trace the source of the JSX component I messed up. The way I solved my problem surprisingly is to delete the node_module folder and reinstall all the node packages by npm install at the root folder of your project.

提交回复
热议问题