I'm trying to get the kotlin fullstack example to ...
# javascript
p
I'm trying to get the kotlin fullstack example to run (cloned it from github). when I run gradlew build the task 'frontendwebpack-bundle' fails with "cannot find module '.../frontend/build/node_modules/webpack/bin/webpack.js'" obvioulsy it fails because the webpack module is not located at that path. Do I need to add something to the build.gradle or am I missing something else?
b
^^^ @cy
c
it looks like npm has failed, still can't find why it continues to run
do you have npm installed? is it in the PATH?
p
yes. I also have webpack installed globally (and in PATH)
c
does
./gradlew npm-install
work?
p
yup
c
what does it do? does it succeed or up-to-date?
p
up-to-date
c
could you please try to do
./gradlew --debug clean bundle
it will cause a lot of logs
but may give us a tip
p
do you want me to post the logfile here?
c
yes, please
also look at build/logs/*
p
I'm also getting some additional output on the console
c
is there build/package.json file ?
does
npm install
in build dir work?
p
yes there is one in /frontend/build
npm install does not work in that directory error is WARN build no description and also invalid name with the path to .../frontend
c
warn about no description is not a problem
what is it about invalid name?
p
npm WARN Invalid name: "C:\\Users\\pdcwi\\Documents\\IdeaProjects\\kotlin-fullstack-sample\\frontend\\build\\js\\frontend"
c
it is still warning
what ERR do you see?
p
none 🙈 sorry this probably means it completed but with some warnings right? I do not have much experience with npm
c
Could you please try to change plugin version from
org.jetbrains.kotlin:kotlin-frontend-plugin:0.0.17
to
org.jetbrains.kotlin:kotlin-frontend-plugin:0.0.19
don't forget to do clean
p
it worked 🙂 thanks a lot