help @WebStormIDE I can't get webstorm to code assist my @lernajs / @yarnpkg workspaces monorepo with module hoisting... example: https://github.com/ctaepper/yarn-lerna-resolutions … … (it does work out of the box in @code, but i don't wanna switch)
-
-
Hello, Christian! What WebStorm version do you use? We've tried WS 2017.3.2, it seems to work fine - please see the screenshot. Do you have different code completion suggestions?pic.twitter.com/4uXDtLzCQb
1 reply 1 retweet 3 likes -
Replying to @WebStormIDE @lernajs and
please use yarn to install, not npm. this monorepo is configured to use module hoisting with yarn, which is the root of the problem. the node_modules folder within package-1 will only contain the .bin scripts. all other modules will reside within the root node_modules
1 reply 0 retweets 0 likes -
Replying to @ctaepper @WebStormIDE and
my guess is, that webstorm only uses "direct dependencies" for autocompletion, which are also not marked as excluded folder within node_modulespic.twitter.com/d2iGvrjJUC
1 reply 0 retweets 0 likes -
Replying to @ctaepper @WebStormIDE and
however, with module hoisting, webstorm does not recognize the direct dependency in the parent node_modulespic.twitter.com/KBDSKRPCbr
1 reply 0 retweets 0 likes -
Yes, that is correct. We'll see what we can do.
1 reply 0 retweets 0 likes -
Replying to @WebStormIDE @ctaepper and
Here's a related feature request on our issue tracker that you can follow. https://youtrack.jetbrains.com/issue/WEB-29250 As a workaround, to add code completion, you can use TypeScript definition files.
1 reply 0 retweets 0 likes -
Replying to @WebStormIDE @ctaepper and
For that, press Alt-Enter on the require statement and select the first action. That will not affect the project itself, only the IDE configuration.pic.twitter.com/UiFEKXYH97
1 reply 0 retweets 1 like -
Replying to @WebStormIDE @lernajs and
telling 5 coworkers to manually install 100+ typescript definitions does not seem like a good solution. i can't believe there is no broader demand for that in our "modern age of monorepos"
1 reply 0 retweets 1 like
Sorry, at the moment we can't offer any other solution. As you might see, the request is rather recent and we haven't yet seen a big demand. We will see how we can support yarn workspaces in WebStorm 2018.1 or .2
-
-
Replying to @WebStormIDE @lernajs and
Alright, thanks for your support Ekaterina (in case thats you)
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.