You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running into a problem when using the .flowconfig option "module.name_mapper".
I've read multiple other issue tickets on problems that module.name_mapper won't find a module etc. but my problem is different.
Flow doesn't throw an error and it looks like it could resolve the module name using the definded mappings.
But: When importing modules that have been mapped with webpack alias and flow's module.name_mapper option, I won't get any autocompletion or type hints anymore.
I'm using the flowtype vscode plugin but I also tried getting the autocompletion output directly from the cli flow-bin but the output is empty.
My directory structure looks like the following:
_src
_shared
elements
SomeComponentName
index.js
backend
...
SomeOtherComponentName
index.js
frontend
...
AnotherComponentName
index.js
So the situation is, that the backend and the frontend need to share some react components.
Which works and doesn't throw an flow error or anything else. It compiles fine with webpack and everything is working but I'm now missing all the great features like type hints and autocompletion.
Is there a way for me to change some configurations in order to make it work?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi,
I'm running into a problem when using the .flowconfig option "module.name_mapper".
I've read multiple other issue tickets on problems that module.name_mapper won't find a module etc. but my problem is different.
Flow doesn't throw an error and it looks like it could resolve the module name using the definded mappings.
But: When importing modules that have been mapped with webpack alias and flow's module.name_mapper option, I won't get any autocompletion or type hints anymore.
I'm using the flowtype vscode plugin but I also tried getting the autocompletion output directly from the cli flow-bin but the output is empty.
My directory structure looks like the following:
So the situation is, that the backend and the frontend need to share some react components.
Now I've set up my .flowconfig:
So that I can use an import statement:
import FAIcon from "elements/FAIcon";
Which works and doesn't throw an flow error or anything else. It compiles fine with webpack and everything is working but I'm now missing all the great features like type hints and autocompletion.
Is there a way for me to change some configurations in order to make it work?
Thanks in advance!
The text was updated successfully, but these errors were encountered: