世博会开始后崩溃

Tor*_*enJ 2 node.js reactjs react-native expo

使用启动我的React Native项目时遇到问题expo start
浏览器打开并显示以下页面:
世博浏览器

大约一秒钟后,页面完全变暗,并且控制台(已EXPO_DEBUG=true设置)中出现以下错误:

Expo DevTools is running at http://localhost:19002
Opening DevTools in the browser... (press shift-d to disable)
error Invalid regular expression: /(.*\\__fixtures__\\.*|node_modules[\\\]react[\\\]dist[\\\].*|website\\node_modules\\.*|heapCapture\\bundle\.js|.*\\__tests__\\.*)$/: Unterminated character class. Run CLI with --verbose flag for more details.

Metro Bundler process exited with code 1
Error: Metro Bundler process exited with code 1
    at ChildProcess.<anonymous> (C:\@expo\xdl@56.2.8\src\Project.ts:1804:16)
    at Object.onceWrapper (events.js:300:26)
    at ChildProcess.emit (events.js:210:5)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Run Code Online (Sandbox Code Playgroud)

我正在运行Windows 10 1903 x64,NodeJs v12.11.0和以下依赖项:

"dependencies": {
  "expo": "^35.0.0",
  "react": "16.8.3",
  "react-dom": "16.8.3",
  "react-native": "https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz",
  "react-native-web": "^0.11.7"
},
"devDependencies": {
  "@types/react": "^16.8.23",
  "@types/react-native": "^0.57.65",
  "babel-preset-expo": "^7.0.0",
  "typescript": "^3.4.5"
}
Run Code Online (Sandbox Code Playgroud)

知道现在该怎么办吗?

Bil*_*eed 6

只需更改项目上的一些哈希即可:转到: \ node_modules \ metro-config \ src \ defaults \ blacklist.js

var sharedBlacklist = [
  /node_modules[/\\]react[/\\]dist[/\\].*/,
  /website\/node_modules\/.*/,
  /heapCapture\/bundle\.js/,
  /.*\/__tests__\/.*/
];
Run Code Online (Sandbox Code Playgroud)

对此:

var sharedBlacklist = [
  /node_modules[\/\\]react[\/\\]dist[\/\\].*/,
  /website\/node_modules\/.*/,
  /heapCapture\/bundle\.js/,
  /.*\/__tests__\/.*/
];
Run Code Online (Sandbox Code Playgroud)