clio-lang/clio

Weird error on browser when running web target project

andreyluiz opened this issue · 0 comments

Describe the bug
When I run clio run on a web target project, the terminal output is fine:
Screenshot 2020-02-05 at 21 11 45

But when I navigate to localhost:1234, I don't see Hello World on the document body, as supposed. Instead I see a blank page, and a console error:

Screenshot 2020-02-05 at 21 13 29

To Reproduce
Steps to reproduce the behavior:

  1. Create a fresh web project with clio new <project-name> --target=web;
  2. Inside the project, run a clio run;
  3. Navigate to localhost:1234, when the build finishes;
  4. Check the blank page and console error on the browser.

Expected behavior
I should see Hello World on the document's body (as the Clio file inside the project).

Screenshots
null

Versions (please complete the following information):

  • OS: Mac OS Catalina 10.15.1
  • Clio: develop
  • Node: 12.14.1
  • NPM: 6.13.4

Possible solutions
Try to remove the valueOf from the default Clio file:

'Hello World' -> .valueOf => document.body.innerText

If it does not work, then the further debugging is needed.

Additional context
Add any other context about the problem here.