Thread
#multiplatform
    c

    coletz

    3 years ago
    Hi guys, I'm trying to build an app with mpp using also kotlin/js. I'm getting this weird error, anyone ever had this issue?
    russhwolf

    russhwolf

    3 years ago
    It looks like you’re working off one of the default new project templates for MPP, so I’m guessing that the
    main()
    declaration you have in your JS is conflicting with the
    main()
    that’s already in the common source.
    c

    coletz

    3 years ago
    uhm... Not sure I'm understanding 😕 Yes, I started creating the project with the template from intellij idea for js/jvm... But I don't know what I should do to fix this issue. Basically you are suggesting to remove the
    fun main(){..}
    from the commonMain?
    You were right, many thanks! Dunno why I haven't seen it, probably I need to sleep 🤦‍♂️