sonicoder86 / angular2-babel-esnext-starter

Angular development and testing examples with Babel in Javascript (ES6/ES7).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blank screen on starting

saurabhvyas opened this issue · comments

I installed everything as given in tutorial then I ran the command node server/index.js and in temrinal it said running on port 9000,but it gives me an empty blank page

Can you share some details?
Console output, node version, operating system etc

I am having the same issue. The server serves the index.html in dist/client, but cannot find vendor.js and other files.

Windows 7 pro
Node version 5.7.0

issue

You started the app with gulp serve?
What is inside the dist folder?

I started with gulp serve

Dist folder:

\---client
    |   angular.ico
    |   boot.css
    |   boot.js
    |   boot.js.map
    |   index.html
    |   vendor.js
    |   vendor.js.map
    |   
    \---css
            about.css

That seems fine, the gulp task generates the files.
Can you check what is the static file path what is generated on the server?

server/config.js

config.staticPath = C:\Users\jsinger\Desktop\angular2-es6-starter\dist\client

that one also seems right

Found the issue: koajs/static#78
Needed to upgrade Node to 5.7.1 or later.

I'm runnig Node 5.10.1, that is why mine was working fine.