Hi all. We are getting the following errors thrown...
# compose-web
x
Hi all. We are getting the following errors thrown in the console when trying to use
compose-multiplatform@1.6.2
in ClimateTraceKMP. Any clue as to whats causing this?
Copy code
overlay.js:157 Uncaught TypeError: Cannot read properties of null (reading 'appendChild')
    at createContainer (overlay.js:157:19)
    [..]
hacks.kt:23 Uncaught (in promise) ClassCastException
overlay.js:185 Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
The above is only get thrown on
jsBrowserRun
and not on
wasmJsBrowerRun
- so this is only affecting the js targets, not wasmjs target
a
if you are using script tag in the head use defer
Copy code
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>WEB-APP</title>
    <script type="application/javascript" src="skiko.js" defer></script>
    <script type="application/javascript" src="composeApp.js" defer></script>
</head>
<body>
<canvas id="ComposeTarget"></canvas>
</body>
</html>
👀 1