I have a codegen task which generates for commonMa...
# getting-started
m
I have a codegen task which generates for commonMain with the following snippet:
Copy code
sourceSets {
        val commonMain by getting {
            kotlin.srcDir(buildDir.resolve("generated/graphql/commonMain/kotlin"))  // Correct path
But I'm getting the following error for jsMain:
Copy code
java.lang.IllegalStateException: IdSignature clash: com.martmists.bbsp.graphql.client/CardRarity|null[0]; Existed declaration CLASS ENUM_CLASS name:CardRarity modality:FINAL visibility:public superTypes:[kotlin.Enum<com.martmists.bbsp.graphql.client.CardRarity>] clashed with new CLASS ENUM_CLASS name:CardRarity modality:FINAL visibility:public superTypes:[kotlin.Enum<com.martmists.bbsp.graphql.client.CardRarity>]
	at org.jetbrains.kotlin.ir.backend.js.lower.serialization.ir.JsUniqIdClashTracker.commit(JsDeclarationTable.kt:27)
	at org.jetbrains.kotlin.backend.common.serialization.GlobalDeclarationTable.computeSignatureByDeclaration(DeclarationTable.kt:48)
	at org.jetbrains.kotlin.backend.common.serialization.DeclarationTable.computeSignatureByDeclaration(DeclarationTable.kt:83)
	at org.jetbrains.kotlin.backend.common.serialization.DeclarationTable.signatureByDeclaration(DeclarationTable.kt:92)
	at org.jetbrains.kotlin.backend.common.serialization.IrFileSerializer.protoIdSignature(IrFileSerializer.kt:293)
I double and triple checked, but there's only one CardRarity enum defined in the
com.martmists.bbsp.graphql.client
package