Does not load script in html
Closed this issue · 1 comments
bryaan commented
I set up a barebones Vue/Vite project and pointed Blink at the local Vite dev server like this:
loadurl(w, "http://localhost:9100/")
But the window doesn't load the main.js file.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="app">hello</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
I am getting this in the console:
Uncaught ReferenceError: globalThis is not defined
at overlay.ts:140
bryaan commented
So this seems to be happening because the version of chrome in use is too old and requires polyfills