I'm running into an issue when using flow in a yarn workspaces enabled monorepo
After installing polished with yarn workspace workspace-name add polished I have a dependencies.polished entry in my workspace-name's package.json, and a polisheddirectory under the repository's root node_modules directory, as expected.
Having a file in the workspace directory with:
import { rgba, } from 'polished';
Spits out:
import { rgba, } from 'polished';
^^^^^^^^^^ polished. Required module not found
It all works just fine when run Flow from the root directory, to which node_modules directory Yarn installs all the different workspaces' dependencies into.
I'd expect Flow to look for type definitions in node_modules directories up the tree, in line with how npm and Yarn work.
Flow version : 0.57.2
node version: 8.4.0
Yarn verson: 1.2.1
I'm running into an issue when using flow in a
yarn workspacesenabled monorepoAfter installing
polishedwithyarn workspace workspace-name add polishedI have adependencies.polishedentry in myworkspace-name'spackage.json, and apolisheddirectory under the repository's rootnode_modulesdirectory, as expected.Having a file in the workspace directory with:
Spits out:
import { rgba, } from 'polished'; ^^^^^^^^^^ polished. Required module not foundIt all works just fine when run Flow from the root directory, to which
node_modulesdirectory Yarn installs all the different workspaces' dependencies into.I'd expect Flow to look for type definitions in
node_modulesdirectories up the tree, in line with how npm and Yarn work.Flow version :
0.57.2node version:
8.4.0Yarn verson:
1.2.1