Guilherme Delgado
06/18/2024, 3:36 PMwasmJsMain
and I have the following project structure:
• Project
◦ browserApp
◦ shared
◦ shared-ui
commonWebpackConfig {
outputFileName = "browserApp.js"
devServer = (devServer ?: KotlinWebpackConfig.DevServer()).apply {
static = (static ?: mutableListOf()).apply {
add(project.projectDir.path)
add(project(":shared").projectDir.path)
add(project(":shared-ui").projectDir.path)
}
}
}
}
It only works for browserApp
module, remaining files will throw: Could not load content for <http://localhost:8080/shared/src/commonMain/>.... (HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE)
Whats missing? 🤔Artem Kobzar
06/18/2024, 5:17 PMadd(project.rootDir.path)
Guilherme Delgado
06/18/2024, 5:19 PMGuilherme Delgado
06/18/2024, 5:23 PMadd(project.rootDir.path)
add(project.projectDir.path)
it works for all modules, but if I add only:
add(project.rootDir.path)
it works just for the other modules. Is it suppose to? 🤔Artem Kobzar
06/18/2024, 5:25 PMsrc/../../
instead of browserApp/src/../../
Artem Kobzar
06/18/2024, 5:26 PMArtem Kobzar
06/18/2024, 5:26 PMGuilherme Delgado
06/18/2024, 5:26 PMGuilherme Delgado
06/18/2024, 5:26 PMGuilherme Delgado
06/18/2024, 5:27 PMArtem Kobzar
06/18/2024, 5:30 PMGuilherme Delgado
06/18/2024, 5:30 PMAndraz
07/11/2024, 2:47 PMadd(project.projectDir.path + "/commonMain/")
add(project.projectDir.path + "/wasmJsMain/")
but it’s not working.
While
add(project.rootDir.path)
add(project.projectDir.path)
works.Artem Kobzar
07/12/2024, 3:22 PM