@@ -376,48 +376,17 @@ node_modules/fbjs/lib/Deferred.js.flow:60
376
376
node_modules/ fbjs/ lib/ shallowEqual .js .flow : 29
377
377
29 : return x !== 0 || 1 / (x: $FlowIssue) === 1 / (y: $FlowIssue);
378
378
^^^^^^^^^^ identifier ` $FlowIssue` . Could not resolve name
379
-
380
- src/ App .js : 3
381
- 3 : import logo from ' ./logo.svg' ;
382
- ^^^^^^^^^^^^ ./ logo .svg . Required module not found
383
-
384
- src/ App .js : 4
385
- 4 : import ' ./App.css' ;
386
- ^^^^^^^^^^^ ./ App .css . Required module not found
387
-
388
- src/ index .js : 5
389
- 5 : import ' ./index.css' ;
390
- ^^^^^^^^^^^^^ ./ index .css . Required module not found
391
379
` ` `
392
380
393
381
To fix this, change your ` .flowconfig ` to look like this:
394
382
395
383
` ` ` ini
396
- [libs]
397
- ./ node_modules/ fbjs/ flow/ lib
398
-
399
- [options]
400
- esproposal .class_static_fields = enable
401
- esproposal .class_instance_fields = enable
402
-
403
- module .name_mapper = ' ^\( .*\)\. css$' - > ' react-scripts/config/flow/css'
404
- module .name_mapper = ' ^\( .*\)\.\( jpg\| png\| gif\| eot\| otf\| webp\| svg\| ttf\| woff\| woff2\| mp4\| webm\) $' - > ' react-scripts/config/flow/file'
405
-
406
- suppress_type= $FlowIssue
407
- suppress_type= $FlowFixMe
384
+ [ignore]
385
+ < PROJECT_ROOT > / node_modules/ fbjs/ .*
408
386
` ` `
409
387
410
388
Re-run flow, and you shouldn’t get any extra issues.
411
389
412
- If you later ` eject` , you’ll need to replace ` react- scripts` references with the ` < PROJECT_ROOT > ` placeholder, for example:
413
-
414
- ` ` ` ini
415
- module .name_mapper = ' ^\( .*\)\. css$' - > ' <PROJECT_ROOT>/config/flow/css'
416
- module .name_mapper = ' ^\( .*\)\.\( jpg\| png\| gif\| eot\| otf\| webp\| svg\| ttf\| woff\| woff2\| mp4\| webm\) $' - > ' <PROJECT_ROOT>/config/flow/file'
417
- ` ` `
418
-
419
- We will consider integrating more tightly with Flow in the future so that you don’t have to do this.
420
-
421
390
## Adding Custom Environment Variables
422
391
423
392
>Note: this feature is available with ` react- scripts@0.2 .3 ` and higher.
0 commit comments