Ayfri
06/29/2023, 5:30 PMuseEsModules()
function for my project, but I'm getting an error :
Module parse failed: Identifier 'AboutMeSection' has already been declared (9687:9)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See <https://webpack.js.org/concepts#loaders>
| return true;
| };
> function AboutMeSection(content, date, image, id, title) {
| image = image === VOID ? false : image;
| title = title === VOID ? null : title;
Here is my class :
data class AboutMeSection(
val content: String,
val date: Int,
val image: Boolean = false,
val id: String,
val title: (@Composable () -> Unit)? = null
)
And yes I confirm that it generated the function 2 timesArtem Kobzar
06/30/2023, 10:27 AMAyfri
07/01/2023, 1:39 PMkotlin {
js(IR) {
browser {
commonWebpackConfig {
devServer?.open = false
sourceMaps = true
}
}
useEsModules()
binaries.executable()
}
}
When I run this, webpack never gets called and the webpack dev server is never opened. And as CORS are a thing I can't even just open the html file in the build folder to see the result.Ayfri
07/01/2023, 1:39 PMArtem Kobzar
07/03/2023, 7:45 AMgradle browserDevelopmentRun --scan
? It's weird, and we would like to fix it if the propblem is inside the compilerAyfri
07/03/2023, 5:11 PMArtem Kobzar
07/03/2023, 5:44 PMdevServer?.open = false
, not only turn off the dev server running, but also, turn off the webpack buildAyfri
07/03/2023, 5:45 PMdevServer?.open = true
Artem Kobzar
07/03/2023, 5:54 PMuseEsModules
to useCommonJs
?Ayfri
07/03/2023, 5:55 PMuseCommonJs
or none of theseArtem Kobzar
07/03/2023, 5:58 PM1.9.0-RC
version?Ayfri
07/03/2023, 6:01 PMtest-js-bug.js:946 Uncaught TypeError: Cannot set properties of undefined (setting 'webpackHotUpdatetest_js_bug')
at test-js-bug.js:946:48
at test-js-bug.js:1416:13
at test-js-bug.js:1428:12
at webpackUniversalModuleDefinition (test-js-bug.js:17:25)
at test-js-bug.js:18:3
(test-js-bug
is the name of my project)Artem Kobzar
07/03/2023, 8:04 PMAyfri
07/03/2023, 8:34 PMAyfri
07/04/2023, 5:24 PMian.shaun.thomas
08/31/2023, 3:47 PMShubham Singh
10/29/2023, 4:50 AMjsBrowserDistribution
gradle taskian.shaun.thomas
10/29/2023, 5:23 AM