angular-redux / example-app

Example using @angular-redux/store, @angular-redux/router, and @angular-redux/form together with the Angular CLI
123 stars 101 forks source link

Unable to run app in browser #7

Closed ghost closed 7 years ago

ghost commented 7 years ago

Hi,

i was looking forward to take a look at your example-app.

Webpack is able to build and "serve" the app on localhost. webpack

But opening http://localhost:4200 results in an empty page.

chrome_error

Steps executed:

  1. git clone https://github.com/angular-redux/example-app.git
  2. npm install
  3. ng serve

Maybe i missed something....

regards, marcel

SethDavenport commented 7 years ago

Hi Marcel,

Seems to be working for me. Can you tell me the following pieces of information:

ghost commented 7 years ago

Hi Seth,

ng -v

angular-cli: 1.0.0-beta.26 node: 6.9.4 os: linux x64

Yes, this is the console from chrome.

ghost commented 7 years ago

Hi @SethDavenport ,

I had the same error message, following the same steps as @mcL86 . I used the following versions:

It seemed to be an issue in the app.component.ts constructor.

SethDavenport commented 7 years ago

Reproduced.

This happens when you don't have the redux Chrome extension installed, which explains why I wasn't seeing it initially. It has been fixed by PR #11, which I merged yesterday evening.

Please pull new code and try again.

SethDavenport commented 7 years ago

Feel free to reopen if this is still an issue.

ghost commented 7 years ago

Hi @SethDavenport ,

thank you for your help.

After the installation of the Redux DevTools everything works fine.

Which part of the code do i have to remove to run this without the Redux DevTools?

SethDavenport commented 7 years ago

The code has been updated to make the devtools not necessary. This is the commit that does it: https://github.com/angular-redux/example-app/commit/9aab537c9238a7d8118dc244bc72937f2def357d