you probably need to adjust paths in `webpack.conf...
# kvision
r
you probably need to adjust paths in
webpack.config.d/webpack.js
j
Ok. I am taking a look! Thanks for the hin!
r
I'm not sure what would be the correct starting point of resolving this path
probably somewhere in root/build/js/project/
try to experiment
j
There is "../../" at the beginning. Do you have an idea why you added this?
r
it's relative to the directory webpack is run
in your case it could be necessary to exit to the root with additional
../
and than go inside a subproject build directory
j
I think I require this prefix:
Copy code
../../../../../
...
5 dir backwards will end in the project root
r
you can probably use absolute path name if you like 🙂
j
And it is working 👍👍👍
--> absolute paths are not possible. It has to run on other machines, too
It also works with:
Copy code
config.resolve.modules.push(".");
In this case the files from "build/js/packages/..." are used. Is this also possible? Any disadvantages?
r
webpack doesn't care what paths are added - you just have to make sure the files you
require
are in those paths
j
I am thinking, that maybe "." could work in the template, too?
It seems. At least for me it did. Maybe this is a better/simpler default? That works for more cases?
r
It really does! 🙂 Something changed in the Kotlin plugin since I last tested these options.
👍 1
a
"."
is only working with IR, it does not with legacy compiler
j
Aah. Ok. That might explain it.