Skip to content

Netlify Dev --live not working #719

@lukasluecke

Description

@lukasluecke

- Do you want to request a feature or report a bug?
Report a Bug

- What is the current behavior?
Requests to the live url result in a blank page due to weird jumbled source-code:

<!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" />
    <meta name="theme-color" content="#000000" />
    <meta
      name="description"
      content="Web site created using create-react-app"
    />
    <link rel="apple-touch-icon" href="/logo192.png" />
    <!--
      manifest.json provides metadata used when your web app is installed on a
      user's mobile device or desktop. "vicoolo on as://e oelopers.google.com/pp /funddesnd os/pp 
   -est.json/  use-- <link rel="appleest.jsonf="/logo1est.json prov    <!--
      manifNotr de-co's m of alle-co'tags above.  manifIt will be"applac usele-co-
 e-ttttrrlle--ttt`public` folde "vur-rea-tttbuildnifIt wiOnly f ord on ata--ttt`public` folde "canpplac ferenle-cfrom--tttHTML.
ifIt wiUnlike ico" />
    <me. ""o" />
    <m, ico" />
    <mebe"aifIt wiworkWebrrectly bo
 eo-
 eclis/p- ata-rout-reaand emeon-root publicttrrnifIt wiLearn how toWeb figure emeon-root publicttrr by runn-rea`npm runtbuild`.-- <link rel="title>R     App</title>    /<meta ch<bodyk rel="no
     >You nee-ctoWenabor JavaS     ctoWruntthed st..</no
     > rel="div id="root"></div
      manifNotr Thed HTML f orled a temusetanifIt wilfapp  .gon it directly o'tags browle ,app  be"aps asanpemuty page.
ifIt wiYou canpadds infb ss,used  abov,e. "analy-cosctoWthed f or.ifNotr Thttbuild step be"apuselea-tttbund    
     d ontoWtheh<bodyk abo.
ifIt wiTopplgo'tags opers.gos/p,Wrunt`npm  a
rt`e. "`yarn  a
rt`.ifIt wiTopct-app a etaduc  cotbund  ,of al`npm runtbuild`e. "`yarn build`.-- <link re<
      srct.j a
-co/js/bund     "></
     ><
      srct.j a
-co/js/0.chunk   "></
     ><
      srct.j a
-co/js/main.chunk   "></
     ></bodyk  /< lang

- If the current behavior is a bug, please provide the steps to reproduce.

  • yarn create react-app
  • netlify init
  • netlify dev --live

- What is the expected behavior?
See the same page as running locally (both localhost:3000 and localhost:8888 work) or deployed (http://react-graphql-polls.netlify.com works as well)

- Local Environment Information

❯ netlify status --verbose
──────────────────────┐
 Current Netlify User │
──────────────────────┘
Name:   lukas
Email:  lukas@luecke.me
Github: lukasluecke
Teams:
  lukas's team: Collaborator
❯ netlify version
netlify-cli/2.35.0 darwin-x64 node-v12.14.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions