Intellij not deducting the base module's commonMai...
# javascript
c
Intellij not deducting the base module's commonMain code in jsMain in dependent module. Auto import does not work. Intellij shows error but code compiles and works This happens for me when I upgrade kotlin version to 2.1.0 but works in 2.0.0. Any body know about any major changes related to it?
a
What is the Intellij version you use?
c
IntelliJ IDEA 2025.2.4
a
@Anna Kozlova ^^
r
Hi! Would it be possible for you to provide to provide a reproducer project for this issue?
c
I am trying to reproduce in a simple project but it occurs only in one project! I will check and let you know If I find any significant pattern
thank you color 1
@Roman Golyshev Here is a simple reproducer project
🔥 1
r
Thank you for the reproducer, it also reproduces on my machine 👍 I’ll create an issue and post it here
gratitude thank you 1
c
Thank you @Roman Golyshev
r
Hi @Charann ! Could you please clarify why do you have
kotlin.mpp.import.enableKgpDependencyResolution
flag set to false in your
gradle.properties
? Why do you need to have that?
c
Hi @Roman Golyshev I added this flag when I got some error(I am trying to re-collect), after switching to latest version of kotlin. Will share the exact error once I find it. Meanwhile, removing that flag works for this case. Thank you!
r
Kudos go to @Aleksei Cherepanov for his investigation of this issue 💪
I added this flag when I got some error(I am trying to re-collect)
Did you use any tutorial/online resource where you’ve learned about this flag?
Will share the exact error once I find it.
Please do 🙏
c
> I added this flag when I got some error(I am trying to re-collect) I remember getting this as a suggestion from Co-pilot/some AI ig, referring to this link