Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not load script in html #301

Closed
bryaan opened this issue Mar 1, 2023 · 1 comment
Closed

Does not load script in html #301

bryaan opened this issue Mar 1, 2023 · 1 comment

Comments

@bryaan
Copy link

bryaan commented Mar 1, 2023

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 bryaan changed the title Hangs when loading localhost react dev server Does not load scripts in html Mar 1, 2023
@bryaan bryaan changed the title Does not load scripts in html Does not load script in html Mar 1, 2023
@bryaan
Copy link
Author

bryaan commented Mar 1, 2023

So this seems to be happening because the version of chrome in use is too old and requires polyfills

@bryaan bryaan closed this as completed Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant