trying to generate .js file so it can be used like...
# multiplatform
v
trying to generate .js file so it can be used like other .js files in HTML but getting this error.
Copy code
Could not create an instance of type org.jetbrains.kotlin.gradle.targets.js.subtargets.KotlinBrowserJs.
> Failed to apply plugin [class 'org.gradle.language.base.plugins.LifecycleBasePlugin']
   > Cannot add task 'clean' as a task with that name already exists.
Here is the common code Gradle for js source.
Copy code
js {
        moduleName = "EmtCore"
        binaries.executable()
        browser {
            webpackTask {
                outputFileName = "$moduleName.js"
            }
            runTask {
                outputFileName = "$moduleName.js"
            }
        }
    }
can anyone guide how to generate .js file
x
might be super late - but i found this message when i searched with the same error stacktrace i got. Solution is to remove the additional clean task android template seems to add in root build.gradle