Use create-react-kotlin-app tag for Creating React apps using Kotlin with no build configuration.
Questions tagged [create-react-kotlin-app]
14 questions
11
votes
2 answers
How to import node module in React-Kotlin?
I created an app using the create-react-kotlin-app command and it loads in Chrome fine. I added the React Material UI package via NPM and that was successful. Now how do I use the Material UI module in my component?
Normally with JavaScript, it's a…

Alex
- 1,082
- 17
- 27
9
votes
2 answers
What is the right way to import 3rd party React components into the kotlin.js project?
I'm trying to use this lib in my create-react-kotlin-app:
https://material-ui-next.com/
I want to generate bunch of type safe wrappers. I started like this:
@file:JsModule("material-ui")
package material
import react.RState
import…

deviant
- 3,539
- 4
- 32
- 47
8
votes
0 answers
How to use sass/scss in create-react-kotlin-app
I'm trying use scss in a kotlin-react application using create-react-kotlin-app in node for easy bootstrapping, but I'm stuck with setting the configuration to make it work
I already ejected, so I can manually edit the webpack config. I already…

Victor Harlan Lacson
- 335
- 2
- 17
3
votes
1 answer
How to import Bootstrap library in Kotlin-React-App
Right now I'm learning Kotlin for the front end, I've created Kotlin React App using
npx create-react-kotlin-app my-app
Then I tried to import Bootstrap using import like
@file:JsModule("node_modules/boostrap/bootsrap.js")
external class Boostrap…

Chaitanya
- 73
- 1
- 9
2
votes
0 answers
Calling Kotlin/React from javascript
I'm trying to use Kotlin for building my React APP (https://github.com/JetBrains/create-react-kotlin-app).
How can I call a function defined in the Kotlin class through the javascript function? How to set the module using create-react-kotlin-app?

WAL
- 21
- 1
1
vote
0 answers
How to Wrapper react-infinite-grid React module in Kotlin?
I want to use react-infinite-grid in Kotlin http://ggordan.com/post/react-infinite-grid.html
I have seen the How to import node module in React-Kotlin?
Below code is my reference…

iHad 169
- 1,267
- 1
- 10
- 16
1
vote
1 answer
How to use socket.io-client in KotlinJS
I want to use the socket.io-client library from nodejs in my React-Kotlin project.
I tried to load it like this:
@file:JsModule("socket.io-client")
@file:JsNonModule
package modules
@JsName("Manager")
external fun socket(uri: String):…

Jonas
- 53
- 5
0
votes
0 answers
I cannot make the time on my Kotlin-JS React website update each second?
I have an issue where the time on my KotlinJS React web page doesn't update unless it is reloaded. What is the proper way to reload data at a set interval.
import csstype.*
import emotion.react.css
import kotlinx.js.timers.setInterval
import…

a1cd
- 17,884
- 4
- 8
- 28
0
votes
1 answer
How to use node module in Kotlin React?
I'm trying to use the bootstrap library. To do so, my first guess was to do the same as the Kotlin React tutorial :
I managed to import the bootstrap library using npm import easily but then I struggle to actually use it and in particular to add…

levo-str
- 3
- 2
0
votes
1 answer
How do i assign css properties when using DSL CSS in Kotlin/Js
I am very new to kotlin/Js and I am trying to style a page but most of the CSS attributes don't seem to support primitive values and the default values in the csstype package do not give me what i want.
How do i set the values for the fields marked…

Joseph Ofem
- 304
- 2
- 15
0
votes
1 answer
How to depend on a maven local jar when using create-react-kotlin-app https://github.com/JetBrains/create-react-kotlin-app
I want to build a frontend in kotlin/react.
I want it to be able to depend on common artefacts written in kotlin.
These artefacts will be in my local maven repo.
How do I reference these in package.json?

Funzo
- 1,190
- 2
- 14
- 25
0
votes
1 answer
Error getting while building react kotlin app using IntelliJ
I've created a simple react app using create-react-kotlin-app. After successful npm start, I tried to get a build of the project using IntelliJ IDEA's Build -> Build Project, but it fails stating
Error:(16, 44) Kotlin: Can't access property…

theapache64
- 10,926
- 9
- 65
- 108
0
votes
2 answers
How to initialize a variable in Kotlin with an Interfaced type?
I'm brand new to Kotlin. I wanted to try the create-react-kotlin-app since I'm a react developer currently and I want to explore Kotlin.
I'm having a tough time instaniating my variables. I'm trying to do this:
fun main(args: Array) {
…

Sean Kelly
- 901
- 7
- 27
0
votes
0 answers
Surface and Nativecrypto errors when trying to get current location
I am getting the errors:
E/Surface: getSlotFromBufferLocked: unknown buffer: 0x7f7fc080e0
E/NativeCrypto: ssl=0x7f5ec8fc00 cert_verify_callback x509_store_ctx=0x7f5d8f0270 arg=0x0
E/NativeCrypto: ssl=0x7f5ec8fc00 cert_verify_callback calling…

Sar Geo
- 27
- 8