Invalid Regular Expression error after running expo start command

前端 未结 1 763
长发绾君心
长发绾君心 2021-01-06 01:38

I am new to React native development. After running:

expo start

or

npm start

or

yarn sta         


        
相关标签:
1条回答
  • 2021-01-06 02:15

    In order to fix this problem, Go to

    \node_modules\metro-config\src\defaults\blacklist.js
    

    Change

    var sharedBlacklist = [
      /node_modules[/\\]react[/\\]dist[/\\].*/,
      /website\/node_modules\/.*/,
      /heapCapture\/bundle\.js/,
      /.*\/__tests__\/.*/
    ];
    

    to

    var sharedBlacklist = [
      /node_modules[\/\\]react[\/\\]dist[\/\\].*/,
      /website\/node_modules\/.*/,
      /heapCapture\/bundle\.js/,
      /.*\/__tests__\/.*/
    ];
    

    Check this for more information.

    0 讨论(0)
提交回复
热议问题