I am trying to get the stream type to check my code, but it gives me an error when it cannot find the paths that were rewritten using the alias babel-plugin-module.
I tried unsuccessfully to use the resolve_dirname parameter in the flowconfig file.
Can someone tell me if this babel plugin can be used with a stream?
.babelrc
{ "plugins": [ "transform-flow-strip-types", ["module-alias", [ { "src": "./app", "expose": "app" }, ]] ] }
.flowconfig
[options] module.system.node.resolve_dirname=app
application / main.js
import bar from 'app/foo';
Application / main.js: 3
3: import bar from 'app/foo'; ^^^^^^^^^^ app/foo. Required module not found
babel flowtype
Tim fairbrother
source share