Closed hillold closed 3 years ago
Following the solution here, I added this to gradle.properties
:
kotlin.js.webpack.major.version=4
It fixed the reported error, but I was getting this error:
Error: Cannot find module 'webpack-cli/bin/config-yargs'
To fix this, I had to downgrade webpack CLI version:
rootProject.plugins.withType<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin> {
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().versions.webpackCli.version = "3.3.12"
}
@hillold I have the same problem, and have gotten to the part where I should downgrade webpack CLI. Where should I copy the code snippet that you showed above? I am sorry, I am new at React projects and never have worked with so many dependencies.
@hillold Where the downgrade webpack CLI is put?
I get this error when I run the project