Hi there! I was trying the tutorial at <https://g...
# compose-web
s
Hi there! I was trying the tutorial at https://github.com/JetBrains/compose-jb/tree/master/tutorials/Web/Getting_Started but when running
./gradlew jsBrowserRun --continuous
, I get this error:
[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
I don't have much experience with frontend technologies, but I found an issue in webpack-cli that sounds like my problem: https://github.com/webpack/webpack-cli/issues/2990 The issue seems to be, that webpack-cli/serve 1.6.0 must only be used with webpack-cli 4.9.1 or higher. Looking at the generated yarn.lock file in the build directory, I find that it uses:
"@webpack-cli/serve@^1.5.0":
version "1.6.0"
[...]
webpack-cli@4.7.1:
version "4.7.1"
and from the limited stuff that I understand from the linked issue, these versions don't seem to be compatible. Now my question is: Can I somehow fix this? Maybe via some fancy config in the gradle DSL? Or is this a bug that needs to be fixed in compose? I am staring at this and have no clue what to do here ๐Ÿ˜…
a
This error has already been reported/asked multiple times in this slack. Folks have tirelessly answered it, but it is already too repetitive. I would advice that you just search through the slack and you'll get your answer. This works for all future questions as well. The odds of you asking something that has already been asked before are pretty darn high. So just search, and if not found, ask.
If by any means I came out as rude/ignorant, please do forgive me that was not my intention at all. It is simply a directive
s
sorry, i did not use the search function ๐Ÿ˜ž i just scrolled up until what i thought was the date when the linked issue was reported. but i somehow got the date wrong and i should have scrolled way higher up, or indeed just use the search. i am sorry for that and it will not happen again ๐Ÿ™‚
r
Just for someone else, so one doesn't have to scroll back too far ๐Ÿ˜‰ https://youtrack.jetbrains.com/issue/KT-49124
๐Ÿ™Œ๐Ÿป 1
๐Ÿ™‚ 1
n
I was trying the tutorialI ... get this error
+ it is sad how low priority is to attract more users to Compose/Web :(