Closed dsky1990 closed 6 years ago
the firstElementChild is i is not defined
after this function, the page is blank
@developit can you help me check it ? thanks
Hi @dsky1990,
Are there any errors in the browser console?
no @matthewlynch , I track the code ,found here makes the page blank
but when i run npm run serve
, it works fine , what cause this problem?
is the https problem?? the page must serve in https?
@developit
It's likely a browser extension interfering, please try in an Incognito window.
@dsky1990 It would be great if you can drop a link to the repo.
@reznord http://13.125.234.168:8080/wsh/build/index.html ,help to see it
@dsky1990 You do have an https
error coming from the service worker refusing to register. I don't think this is causing the blank rendering, but you can preact build --no-sw
to turn that off & look at the underlying problem.
@lukeed preact build --no-sw
is not a right command
@dsky1990 you're importing preact/debug
twice (preact-cli does this for you).
The reason the screen blanks is because you have no default route, and no route is matching the current URL:
Notice that there are no routes in your <Router>
that would match the URL:
You can see that this is the case if you pause when the page first loads, and change the URL to "/"
:
@developit thanks very much
Do you want to request a feature or report a bug? after run build, the page is blank,no idea what happened What is the current behaviour?