【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__\/.*/
];
或许是不知梦的缘故 流离之人追逐幻影