PHondogo
07/23/2024, 9:57 AM> Task :my-project:jsBrowserTest
Instead change the require of /home/user/my-project/build/js/node_modules/strip-ansi/index.js in /home/user/my-project/build/js/node_modules/string-width/index.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/home/user/my-project/build/js/node_modules/string-width/index.js:2:19) {
How to fix it?
Gradle config for Js target:
js {
browser {
testTask {
useKarma {
useFirefoxHeadless()
}
}
}
useEsModules() // with useCommonJs() there is the same message
binaries.library()
}
Kotlin version: 2.0.20-Beta2broadway_lamb
07/23/2024, 3:10 PM