1I don't have metro-config in my project, now what?
2I have found that in pretty older project there is no metro-config in node_modules. If it is the case with you, then,
3
4Go to node_modules/metro-bundler/src/blacklist.js
5
6And do the same step as mentioned in other answers, i.e.
7
8Replace
9
10var sharedBlacklist = [
11 /node_modules[/\\]react[/\\]dist[/\\].*/,
12 /website\/node_modules\/.*/,
13 /heapCapture\/bundle\.js/,
14 /.*\/__tests__\/.*/
15];
16with
17
18var sharedBlacklist = [
19 /node_modules[\/\\]react[\/\\]dist[\/\\].*/,
20 /website\/node_modules\/.*/,
21 /heapCapture\/bundle\.js/,
22 /.*\/__tests__\/.*/
23];
24P.S. I faced the same situation in a couple of projects so thought sharing it might help someone.
25
26Edit
27
28As per comment by @beltrone the file might also exist in,
29
30node_modules\metro\src\blacklist.js
1I don't have metro-config in my project, now what?
2I have found that in pretty older project there is no metro-config in node_modules. If it is the case with you, then,
3
4Go to node_modules/metro-bundler/src/blacklist.js
5
6And do the same step as mentioned in other answers, i.e.
7
8Replace
9
10var sharedBlacklist = [
11 /node_modules[/\\]react[/\\]dist[/\\].*/,
12 /website\/node_modules\/.*/,
13 /heapCapture\/bundle\.js/,
14 /.*\/__tests__\/.*/
15];
16with
17
18var sharedBlacklist = [
19 /node_modules[\/\\]react[\/\\]dist[\/\\].*/,
20 /website\/node_modules\/.*/,
21 /heapCapture\/bundle\.js/,
22 /.*\/__tests__\/.*/
23];
24P.S. I faced the same situation in a couple of projects so thought sharing it might help someone.
25
26Edit
27
28As per comment by @beltrone the file might also exist in,
29
30node_modules\metro-config\src\defaults\blacklist.js