Weird error on browser when running web target project
andreyluiz opened this issue · 0 comments
andreyluiz commented
Describe the bug
When I run clio run
on a web target project, the terminal output is fine:
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:
To Reproduce
Steps to reproduce the behavior:
- Create a fresh web project with
clio new <project-name> --target=web
; - Inside the project, run a
clio run
; - Navigate to
localhost:1234
, when the build finishes; - 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.