美文网首页
React Native在升级NodeJS新版本后,不能启动开发

React Native在升级NodeJS新版本后,不能启动开发

作者: 你还真是学不乖丶 | 来源:发表于2020-01-09 10:38 被阅读0次
image.png
SyntaxError: Invalid regular expression: /(.\fixtures\.|node_modules[\]react[\]dist[\].|website\node_modules\.|heapCapture\bundle.js|.\tests\.)$/: Unterminated character class
解决方法

1.回退node版本为v12.10.0
2.使用node v12.13.0 的话
可以修改node_modules/metro-config/src/defaults/blacklist.js里面的sharedBlacklist

/node_modules[/\]react[/\]dist[/\]./, ==》 /node_modules[/\]react[/\]dist[/\]./,
或者 /node_modules[/\]react[/\]dist[/\].*/

相关文章

网友评论

      本文标题:React Native在升级NodeJS新版本后,不能启动开发

      本文链接:https://www.haomeiwen.com/subject/baqyactx.html