Abhinav
Abhinav

Reputation: 682

The polymer tutorial app renders a blank page

So.. I was trying out the polymer tutorial and here's what I followed :-

1) Downloaded the Starter Project

2) ran python -m SimpleHTTPServer after changing directory to starter

Now when I go to localhost:8000 in my browser, a grey page opens up. I tried inspect element and found this error

http://localhost:8000/components/platform/platform.js 404 (File not found)

Here is a screenshot with the error.

Addition Info:

OS : Windows 8.1 Enterprise 32bit

Python: 2.7

Chrome: 35.0.1916.153 m

Upvotes: 0

Views: 1499

Answers (2)

Sanford Redlich
Sanford Redlich

Reputation: 526

For me, the /starter/index.html was missing the following code in the style block. It's needed for anything to show:

  core-header-panel {
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch; 
  }
  core-toolbar {
    background: #03a9f4;
    color: white;
  }

Upvotes: 2

Rachael
Rachael

Reputation: 121

You need to run python -m SimpleHTTPServer from the top level of the entire project... that would be the ~/polymer-tutorial-master directory. Then go to http://localhost:8000/starter to see the starter project. Likewise to see what everything should look like after Step 1, Step 2 and Step 3 you can navigate to http://localhost:8000/step-1, etc.

Upvotes: 2

Related Questions