Am I correct that intra-project dependencies are n...
# javascript
s
Am I correct that intra-project dependencies are not working correctly with the IR compiler? I have a project with 2 modules, and one depends on the other. But when I try to build, I get a
"Couldn't find package "…-jsIr@1.0.1" required by "…-jsLegacy@1.0.1 on the "npm" registry."
even though I have them both configured with
js(BOTH) {}
b
How are you adding the dependency? Seems you're trying to add kotlin dependency as npm dependency
s
Copy code
dependencies {
    "commonMainApi"(project(":other-project"))
}
I have no npm dependencies configured for any of my projects.
b
Do you have any implementation(npm("", "")) anywhere?
s
No
b
I'm baffled then. It's working fine for all my projects. Maybe try moving that dependency declaration into kotlin.sourceSets.commonMain.dependencies?
s
I’ll try to create a test project.
b
You can have at my setup (quite similar to yours from what I'm hearing) here and see what's different.
s
So, it looks like when I use “IR” for all of the projects it works fine, but when I use “BOTH” it fails, because it gets mismatched when it tries to find dependencies.
r
That's issue worthy, especially if you have a good reproducer project. http://kotl.in/issue