Tristan
07/24/2022, 5:26 PM1.7.0
I am getting troubles to get a JS project being served via jsBrowserDevelopmentRun
My browser is correctly opening my index.html
file, but not able to fetch the JS (404).
The gradle output is the following
> Task :kotlinNodeJsSetup UP-TO-DATE
> Task :kotlinNpmCachesSetup
> Task :kotlinRestoreYarnLock UP-TO-DATE
> Task :kotlinYarnSetup UP-TO-DATE
> Task :adView:jsPackageJson UP-TO-DATE
> Task :adView:jsTestPackageJson UP-TO-DATE
> Task :packageJsonUmbrella UP-TO-DATE
> Task :rootPackageJson UP-TO-DATE
> Task :kotlinNpmInstall UP-TO-DATE
> Task :kotlinStoreYarnLock UP-TO-DATE
> Task :adView:jsGenerateExternalsIntegrated SKIPPED
> Task :adView:compileKotlinJs UP-TO-DATE
> Task :adView:jsProcessResources UP-TO-DATE
> Task :adView:jsMainClasses UP-TO-DATE
> Task :adView:compileDevelopmentExecutableKotlinJs UP-TO-DATE
> Task :adView:jsDevelopmentExecutableCompileSync
> Task :adView:jsBrowserDevelopmentRun
Execution optimizations have been disabled for task ':adView:jsBrowserDevelopmentRun' to ensure correctness due to the following reasons:
- Gradle detected a problem with the following location: '/Users/tristan/AndroidStudioProjects/Ads/build/js/packages/Ads-adView/kotlin/Ads-adView.js'. Reason: Task ':adView:jsBrowserDevelopmentRun' uses this output of task ':adView:jsDevelopmentExecutableCompileSync' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to <https://docs.gradle.org/7.4.2/userguide/validation_problems.html#implicit_dependency> for more details about this problem.
<i> [webpack-dev-server] Project is running at:
<i> [webpack-dev-server] Loopback: <http://localhost:8080/>
<i> [webpack-dev-server] On Your Network (IPv4): <http://10.0.0.3:8080/>
<i> [webpack-dev-server] On Your Network (IPv6): http://[fe80::1]:8080/
<i> [webpack-dev-server] Content not from webpack is served from '/Users/tristan/AndroidStudioProjects/Ads/adView/build/processedResources/js/main' directory
<i> [webpack-dev-middleware] wait until bundle finished: /
I am also joining the content of build
as a screenshot.
Are there any steps I missed?
Thanks a lot for your help.Tristan
07/24/2022, 5:30 PMindex.html
was incorrect.
I apologize for the noise.