Since, i am new to javascript in kotlin multiplatf...
# javascript
r
Since, i am new to javascript in kotlin multiplatform, i need assistance mates, getting following error: Module not found: Error: Can't resolve 'fs' in '/Users/vikramsingh/Downloads/ExpenseManagment/build/js/packages/AccountBook-KMP-webApp-Js/kotlin' I know it's for import but where and how i need to import it, Repo: https://github.com/TheReprator/ExpenseManagment/tree/feature/interentCheck Branch: feature/interentCheck Specific file: ImageLoadingPlatformComponent.js.kt (https://github.com/TheReprator/ExpenseManagment/blob/feature/interentCheck/appModules/base-ui/src/jsMain/kotlin/dev/reprator/baseUi/imageLoader/ImageLoadingPlatformComponent.js.kt)
r
It looks like you are building a web application (for the browser) but trying to use Okio, which doesn't work well with the browser environment (it's designed for NodeJS).
r
@Robert Jaros yes, i had added browser support for nodejs as well in build.gradle.kts of the module
r
You can't do this like that. Node library will not work in the browser.
r
@Robert Jaros do we have alternative of okio for kotlin js?
r
And what do you try to implement with it?
r
filsystem, to access files
for caching
r
You can't access filesystem in the browser at all. No library will help.
r
@Robert Jaros thanks for the assistance and info,