Note that app is marked as "source root", I don't need fancy webpack integration, yet all paths are still shitty ./../../../comp
-
-
Replying to @sebastienlorber @intellijidea
Is ScrollToTop a named export in atoms/ScrollToTop.js? Please try to check the options in Preferences | Editor | Code style | TS/JS - Import
1 reply 0 retweets 0 likes -
The options "Use paths relative to the source root" and "Use directory import" should do the trick.
1 reply 0 retweets 0 likes -
Replying to @WebStormIDE @intellijidea
omg it works, it imported import ScrollToTop from "app/components/atoms/ScrollToTop";
1 reply 0 retweets 0 likes -
but it did not lookup for index.js however, yet ScrollToTop is present in index.js file as a named import so I expect it to be used first
2 replies 0 retweets 0 likes -
Replying to @sebastienlorber @intellijidea
Have you checked the second option "Use directory import"? It should do exactly that.
1 reply 0 retweets 0 likes -
Replying to @WebStormIDE @intellijidea
Yes I have checked both. ScrollToTop can be imported both from ScrollToTop.js (default) and index.js (named), and it always pick the first
1 reply 0 retweets 0 likes -
-
Replying to @sebastienlorber @intellijidea
Thanks, we'll double-check and get back to you in the issue. May be we'll need a bigger code sample.
1 reply 0 retweets 1 like -
this is really annoyed
1 reply 0 retweets 0 likes
You can always disable auto imports in Preferences | Editor | General | Auto import ;-)
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.