When I upgrade to 5.5.1 I get the following when I...
# kvision
l
When I upgrade to 5.5.1 I get the following when I try to run
[webpack-cli] Unable to load '@webpack-cli/serve' command
[webpack-cli] TypeError: options.forEach is not a function
[webpack-cli] TypeError: options.forEach is not a function
at WebpackCLI.makeCommand (/home/leo/tmp/dev/tkview/build/js/node_modules/webpack-cli/lib/webpack-cli.js:173:21)
at ServeCommand.apply (/home/leo/tmp/dev/tkview/build/js/node_modules/@webpack-cli/serve/lib/index.js:41:19)
at loadCommandByName (/home/leo/tmp/dev/tkview/build/js/node_modules/webpack-cli/lib/webpack-cli.js:907:35)
at async Command.<anonymous> (/home/leo/tmp/dev/tkview/build/js/node_modules/webpack-cli/lib/webpack-cli.js:1462:17)
at async Promise.all (index 0)
at async WebpackCLI.run (/home/leo/tmp/dev/tkview/build/js/node_modules/webpack-cli/lib/webpack-cli.js:1500:9)
at async runCLI (/home/leo/tmp/dev/tkview/build/js/node_modules/webpack-cli/lib/bootstrap.js:11:9)
Any ideas whats wrong?
r
Do you have any workarounds in your build.gradle.kts file (webpack versions which were previously required)?
If so, remove it.
l
No, I have removed that one...
My gradle configuration has been though many migrations. It is available (develop branch) at https://github.com/rojeras/tkview/tree/develop. I would be very grateful if you can take a quick look.
r
You are not using kvision gradle plugin. It's recommended since 5.0, because it can greatly simplify your configuration.
Give me a moment
l
Works like a charm! Mane thanks!!