【RN】react-native start 报错

搭建项目完成后,npx hyext start报错

根据图片显示,正则错误,
解决办法:
修改项目内文件:\node_modules@hyext\builder-h5game.builder-laya-temp\build-dev-launcher\node_modules\metro-config\src\defaults\blacklist.js

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

var sharedBlacklist = [
  /node_modules[\/\\]react[\/\\]dist[\/\\].*/,
  /website\/node_modules\/.*/,
  /heapCapture\/bundle\.js/,
  /.*\/__tests__\/.*/
];
posted @ 2020-06-15 21:35  戮漠  阅读(429)  评论(0编辑  收藏  举报