MrPowerGamerBR
06/14/2022, 4:23 AMjsBrowserProductionRun
or jsBrowserDevelopmentRun
? The generated JS does work if I host it in a webserver manually.
By looking at this (https://github.com/vaadin/flow/issues/13952), it seems that the @webpack-cli/serve
package should be pinned to 1.6.1, and it seems that because the version is declared as "^1.6.1", it pulls version 1.7.0 to my project (well, at least that's what the yarn.lock file says 😛).
* What went wrong:
Execution failed for task ':web:dashboard:frontend:jsBrowserProductionRun'.
> [webpack-cli] TypeError: cli.isMultipleCompiler is not a function
[webpack-cli] TypeError: cli.isMultipleCompiler is not a function
at Command.<anonymous> (C:\Users\Leonardo\Documents\IdeaProjects\LorittaBot\LorittaCinnamon\build\js\node_modules\@webpack-cli\serve\lib\index.js:146:35)
at async Promise.all (index 1)
at async Command.<anonymous> (C:\Users\Leonardo\Documents\IdeaProjects\LorittaBot\LorittaCinnamon\build\js\node_modules\webpack-cli\lib\webpack-cli.js:1674:7)
"@webpack-cli/serve@^1.6.1":
version "1.7.0"
resolved "<https://registry.yarnpkg.com/@webpack-cli/serve/-/serve-1.7.0.tgz#e1993689ac42d2b16e9194376cfb6753f6254db1>"
integrity sha512-oxnCNGj88fL+xzV+dacXs44HcDwf1ovs3AuEzvP7mqXw7fQntqIhQ1BRmynh4qEKQSSSRSWVyXRjmTbZIX9V2Q==
Szymon Kaczorowski
06/14/2022, 5:09 AMafterEvaluate {
rootProject.extensions.configure<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension> {
versions.webpackCli.version="4.10.0"
}
}
As curent webpack used is 4.9.2vonox7
06/14/2022, 8:54 AMturansky
06/14/2022, 1:16 PMMrPowerGamerBR
06/14/2022, 2:18 PM* What went wrong:
Execution failed for task ':web:dashboard:frontend:jsPackageJson'.
> There is already declared version of 'webpack' with version '5.69.1' which does not intersects with another declared version '5.73.0'
turansky
06/14/2022, 2:22 PMyarn.lock
before for “clean” check. Looks like lock update problemMrPowerGamerBR
06/14/2022, 2:36 PM<http://kotlin.incremental.js.ir|kotlin.incremental.js.ir>
causes a Uncaught ReferenceError: send is not defined
when running the application (the send
method seems to be from Ktor)turansky
06/14/2022, 9:20 PM