Kiryushin Andrey
04/09/2020, 6:19 PMExecution failed for task ':jsBrowserProductionWebpack'.
> Process 'webpack' returns 2
I've narrowed the problem down to the usage of io.ktor.client.HttpClient
class. This error appears if I instantiate it or obtain its reflection descriptor in any part of the js source set and goes away if I remove all references of this class from the source set.
My Kotlin multiplatform plugin version is 1.3.71
and Ktor version is 1.3.2
. I have dependencies on both io.ktor:ktor-client-core
and io.ktor:ktor-client-js
in my jsMain source set.
Any help is appreciated - maybe anyone has ideas on why this is happening or at least how to gain more insight into what is happening during the webpack build.Kiryushin Andrey
04/09/2020, 6:50 PMKiryushin Andrey
04/09/2020, 6:51 PMtext-encoding
, bufferutil
, utf-8-validate
and abort-controller
. But one more error still remains and I don't know what to do about it:
ERROR in C:/Projects/Spike/build/js/node_modules/node-gyp-build/index.js
Module not found: Error: Can't resolve 'fs' in 'C:\Projects\Spike\build\js\node_modules\node-gyp-build'
@ C:/Projects/Spike/build/js/node_modules/node-gyp-build/index.js 1:9-22
@ C:/Projects/Spike/build/js/node_modules/utf-8-validate/index.js
@ C:/Projects/Spike/build/js/node_modules/ws/lib/Validation.js
@ C:/Projects/Spike/build/js/node_modules/ws/lib/Receiver.js
@ C:/Projects/Spike/build/js/node_modules/ws/index.js
@ ./kotlin-dce/ktor-ktor-client-core.js
@ ./kotlin-dce/Spike.js
@ multi ./kotlin-dce/Spike.js
russhwolf
04/09/2020, 6:55 PMKiryushin Andrey
04/09/2020, 7:13 PMIlya Goncharov [JB]
04/10/2020, 6:07 AMfs
is module related with file system, and available only with usage in NodeJS environment