build: initialize JS target in root to fix isolated classpath issue
Explicitly added JS target with browser and Node.js configurations at the root level to ensure the NodeJsRootPlugin is loaded. Resolved the "IsolatedKotlinClasspathClassCastException" error in subprojects. Updated Yarn lock to reflect new dependencies.
This commit is contained in:
@@ -38,6 +38,13 @@ plugins {
|
||||
// This ensures NodeJsRootPlugin is initialized here first.
|
||||
kotlin {
|
||||
jvm() // Dummy target to keep KMP happy
|
||||
|
||||
// FIX: Explicitly initialize JS target at root to force NodeJsRootPlugin loading
|
||||
// This prevents "IsolatedKotlinClasspathClassCastException" in subprojects
|
||||
js {
|
||||
browser()
|
||||
nodejs()
|
||||
}
|
||||
}
|
||||
|
||||
// ##################################################################
|
||||
|
||||
Reference in New Issue
Block a user