Sean Keane
02/18/2020, 3:07 PMrequire("kotlin")
Jaxon Du
02/18/2020, 5:57 PMFleshgrinder
02/18/2020, 6:58 PMArrayBuffer
to a Kotlin array and/or vice-versa?
2. How do you await a Promise<S>
while blocking execution? (let x = await f()
)Chenn
02/19/2020, 10:47 AMmirror-kt
02/19/2020, 12:00 PMspierce7
02/19/2020, 7:06 PMcorneil
02/20/2020, 7:47 AMMrPowerGamerBR
02/20/2020, 6:05 PMkotlin2js
and the new multiplatform way on the website, makes you wonder "okay, so what's the right one?"audriusk
02/21/2020, 9:20 AMrootProject/build/js
Is there any easy way to change output to be in subModule dir? e.g. submodule/build/dest
Usecase: firebase functions deployment. It requires all files of proper node project (packages.json, src, etc)Adam Szadkowski
02/23/2020, 9:29 AM@JsModule("typeface-roboto")
@JsNonModule
external val roboto: dynamic
I am getting an error that webpack is unable to load css:
Module parse failed: Unexpected character '@' (2:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See <https://webpack.js.org/concepts#loaders>
But still - looking at DSL for
kotlin.target.browser { }
I was not able to find anything which would allow to add new loader.
Is there any solution to this?Fleshgrinder
02/24/2020, 1:33 PMjsBrowserTest
to work on a Mac? The headless chrome that is started by default does not seem to work at all: https://github.com/Fleshgrinder/kotlin-uuid/runs/464690932?check_suite_focus=trueribesg
02/24/2020, 8:12 PMwebpack.config.d/chunk.js
config.optimization = {
moduleIds: 'hashed',
runtimeChunk: 'single',
splitChunks: {
cacheGroups: {
vendor: {
test: /[\\/]node_modules[\\/]/,
name: function(module) {
const packageName = module.context.match(/[\\/]node_modules[\\/](.*?)([\\/]|$)/)[1];
return `npm.${packageName.replace('@', '')}`;
}
}
}
}
};
And here's the matching webpack.evaluated.config.js
part:
optimization: {
moduleIds: 'hashed',
runtimeChunk: 'single',
splitChunks: {
cacheGroups: {
vendor: {
test: /[\\\/]node_modules[\\\/]/,
name: [Function: name]
}
}
}
}
What should I do with that?Thanhhai08sk
02/25/2020, 8:47 AM...
function createApplicationScreenMessage() {
return 'Kotlin Rocks on ' + platformName();
}
var package$kotlinnativetest = package$org.kotlinnativetest || (package$org.kotlinnativetest = {});
package$kotlinnativetest.main = main;
package$kotlinnativetest.createApplicationScreenMessageJs = createApplicationScreenMessage;
...
This is maybe a dumb question but I'm new to js. How could I call the "createApplicationScreenMessageJs" function in js?spierce7
02/26/2020, 3:34 AM$$importsForInline$$,com,firebase
Firebase basically expects a node file with only firebase functions exported. How can I achieve this?galex
02/26/2020, 9:32 AMBenoit Quenaudon
02/26/2020, 4:36 PMKotlinCompilationNpmResolver
isn't able to resolve it.
The --info
would show me that the nested project's module has been found to then tell me that it cannot find the project
Selected primary task ':wire-tests:jsPackageJson' from project :wire-tests
Found project 'project :wire-library:wire-runtime' as substitute for module 'com.squareup.wire:wire-runtime'.
Found project 'project :wire-library:wire-grpc-client' as substitute for module 'com.squareup.wire:wire-grpc-client'.
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':wire-tests:jsPackageJson'.
> Cannot find project :wire-runtime
The stracktrace brings me to https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/targets/js/npm/resolver/KotlinCompilationNpmResolver.kt#L185
It looks like the project.projectRegistry
only has access to the root modules, and none of the `includedBuild`'s modules are in there.sean
02/26/2020, 7:33 PMJSExport
with the compiler opts. I'm getting out a .js
and .d.ts
file. But when trying to import into a ts
project I'm getting output.d.ts is not a module
The top level looks like
declare namespace output {
type Nullable<T> = T | null | undefined
namespace my.test.project
.....
}
}
Is there an example of how to properly structure / bundle the output into a npm package?uliluckas
02/26/2020, 8:45 PMCould not find org.nodejs:node:12.14.0
with kotlin eap and `Could not find org.nodejsnode10.15.3.`with the stable releaseuli
02/27/2020, 10:16 AMSean Keane
02/27/2020, 2:05 PMcommonLib.myTestMap.get("key")
But the method available to me is commonLib.myTestMap.get_11rb$("key")
Is there any way of having a standard getter for the keys in the map?hallvard
02/27/2020, 2:38 PMspierce7
02/27/2020, 10:54 PMspierce7
02/28/2020, 5:32 AMimplementation(npm("@jetbrains/kotlin-react"))
ribesg
02/29/2020, 10:09 AMdispatch
function? useContext
only returns the stateGrantas33
03/01/2020, 4:56 PMjw
03/03/2020, 4:23 AMOmar Ahmed
03/03/2020, 9:42 AMSean Keane
03/03/2020, 2:32 PMjw
03/04/2020, 2:58 AMrnentjes
03/04/2020, 9:55 AM