Update: β
RESOLVED β
Hi friends
I am facing
this issue but the solution provided in the thread does not seem to be working for me
The first attached image shows what
.js
files are being generated for my project (inside the
/Clippy/js/build/compileSync/js/main/developmentExecutable/kotlin
package)
The second attached image shows the content generated for
Clippy-js.js
file
Is there a way to just include a single
.js
file in the
<script>
tag inside my project's
index.html
file that automatically imports its required dependencies?
This is how my
index.js
file looks like at the moment:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JS Client</title>
</head>
<body>
<div id="root"></div>
<script src="Clippy-js.js"></script>
</body>
</html>
And this is the error message I see in the console:
Uncaught Error: Error loading module 'Clippy-js'. Its dependency 'react-dom/client' was not found. Please, check whether 'react-dom/client' is loaded prior to 'Clippy-js'.
at Clippy-js.js:8:13
at Clippy-js.js:21:2