If I install kotlin together with kotlinx-coroutin...
# javascript
f
If I install kotlin together with kotlinx-coroutines-core via NPM There are dependency conflicts, but if I remove kotlin package in my package.json resolve conflicts and finds the kotlin and coroutines modules. Does kotlinx-coroutines-core include the Kotlin package in NPM?
Copy code
"dependencies": {
 "kotlin": "^1.4.0",  // Conflict with kotlinx-coroutines-core package
 "kotlinx-coroutines-core": "^1.4.2",
},
Copy code
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: node-server@0.1.0
npm ERR! Found: kotlin@1.4.21
npm ERR! node_modules/kotlin
npm ERR!   kotlin@"^1.4.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer kotlin@"1.4.0" from kotlinx-coroutines-core@1.4.2
npm ERR! node_modules/kotlinx-coroutines-core
npm ERR!   kotlinx-coroutines-core@"^1.4.2" from the root project
a
Seems like
kotlinx-coroutines-core@1.4.2
is requiring
kotlin@"1.4.0"
and latest is
1.4.21
🤔
f
Yes, I tried with multiple versions. If I remove the Kotlin package it works perfectly: I was curious why it works.
Copy code
"dependencies": {
 "kotlinx-coroutines-core": "^1.4.2",
},