./gradlew run
Error in browser:
Error: Cannot find module 'kotlin-react-router-dom'
Noticed that build/js/node_modules does not have kotlin-react-router-dom
Solution:
Incorection imports. Changed to:
- implementation("org.jetbrains:kotlin-react-router-dom:$reactRouterDomVersion-$kotlinWrappersVersion")
- implementation(npm("react-router-dom", reactRouterDomVersion))
References - slack-kotlinlang-react
- Anyone get the react router working?...withRouter
- ojaynico/kotlin-js-react-gradle
- felipehjcosta/chat-app