Closed Traveller23 closed 8 months ago
your index.html doesn't contain
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Demo</title>
</head>
<body>
<canvas id="canvas"></canvas>
<script src="bundle.js"></script>
</body>
</html>
Thanks, I realized that was the reason too, but I forgot to reply.
I created a simple webpack project and added the sample code to it. It compiled successfully, but when executing, the page went blank and I found the following error message in my browser's console:
Here is the entire contents of index.ts:
@zhobo63/imgui-ts version: 0.1.41 This is my project: demo.zip
How to reproduce: