Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution for Invalid regular expression in Go-social #134

Open
Yash621 opened this issue Mar 5, 2022 · 0 comments
Open

Solution for Invalid regular expression in Go-social #134

Yash621 opened this issue Mar 5, 2022 · 0 comments

Comments

@Yash621
Copy link
Contributor

Yash621 commented Mar 5, 2022

Expected Behavior

Perfectly Running App without no pre-log Errors.

Current Behavior

The console is throwing the below listed errors in Failure Logs

Steps to Reproduce

  1. Follow all the steps in the readme
  2. run the app as usual using terminal.

Failure Logs

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

Solution

After upgrading dependencies to #133 ,To solve this issue,

navigate to \node_modules\metro-config\src\defaults\blacklist.js and upgrade

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__\/.*/ ];

This will probably solve the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant