Skip to content

Sample Apps not working #3363

Closed
Closed

Description

@graham-sportsmgmt

At the bottom of the Getting Started page ( https://material.angular.io/guide/getting-started ) there are links to two sample apps:

Material Sample App - https://material.angular.io/guide/material2-app
Angular Connect 2016 Demo - https://material.angular.io/guide/leashed-in

Both of these links redirect to https://material.angular.io/ which shows an eternal loading message:

untitled

The console shows this error output:

TypeError: Cannot read property 'document' of undefined
    at e.detectChangesInternal (https://material.angular.io/main.187804ec05c88255b68e.bundle.js:28:9953)
    at e.t.detectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:36:5749)
    at e.t.internalDetectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:36:5542)
    at e.detectChangesInternal (https://material.angular.io/main.187804ec05c88255b68e.bundle.js:28:7809)
    at e.t.detectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:36:5749)
    at t.detectChangesInNestedViews (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:57:780)
    at e.detectChangesInternal (https://material.angular.io/main.187804ec05c88255b68e.bundle.js:26:9934)
    at e.t.detectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:36:5749)
    at e.t.internalDetectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:36:5542)
    at e.detectChangesInternal (https://material.angular.io/main.187804ec05c88255b68e.bundle.js:26:8430)
    at e.t.detectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:36:5749)
    at t.detectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:1008:1301)
    at https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:183:5180
    at Array.forEach (native)
    at e.tick (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:183:5147)
i @ vendor.cd86af5b77b0c0342f39.bundle.js:1417
vendor.cd86af5b77b0c0342f39.bundle.js:735 EXCEPTION: Uncaught (in promise): TypeError: Cannot read property 'document' of undefined
TypeError: Cannot read property 'document' of undefined
    at e.detectChangesInternal (https://material.angular.io/main.187804ec05c88255b68e.bundle.js:28:9953)
    at e.t.detectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:36:5749)
    at e.t.internalDetectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:36:5542)
    at e.detectChangesInternal (https://material.angular.io/main.187804ec05c88255b68e.bundle.js:28:7809)
    at e.t.detectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:36:5749)
    at t.detectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:1008:1301)
    at t.activate (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:529:1918)
    at t.placeComponentIntoOutlet (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:14476)
    at t.activateRoutes (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:14064)
    at https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:13299
    at Array.forEach (native)
    at t.activateChildRoutes (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:13277)
    at t.activate (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:12934)
    at https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:7777
    at e._next (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:57:3070)
t.handleError @ vendor.cd86af5b77b0c0342f39.bundle.js:735
vendor.cd86af5b77b0c0342f39.bundle.js:735 ORIGINAL STACKTRACE:
t.handleError @ vendor.cd86af5b77b0c0342f39.bundle.js:735
vendor.cd86af5b77b0c0342f39.bundle.js:735 Error: Uncaught (in promise): TypeError: Cannot read property 'document' of undefined
TypeError: Cannot read property 'document' of undefined
    at e.detectChangesInternal (https://material.angular.io/main.187804ec05c88255b68e.bundle.js:28:9953)
    at e.t.detectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:36:5749)
    at e.t.internalDetectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:36:5542)
    at e.detectChangesInternal (https://material.angular.io/main.187804ec05c88255b68e.bundle.js:28:7809)
    at e.t.detectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:36:5749)
    at t.detectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:1008:1301)
    at t.activate (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:529:1918)
    at t.placeComponentIntoOutlet (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:14476)
    at t.activateRoutes (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:14064)
    at https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:13299
    at Array.forEach (native)
    at t.activateChildRoutes (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:13277)
    at t.activate (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:12934)
    at https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:7777
    at e._next (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:57:3070)
    at m (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:1417:2213)
    at l (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:1417:1372)
    at l (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:1417:1121)
    at https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:1417:1776
    at t.invokeTask (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:1417:9670)
    at Object.onInvokeTask (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:78:2559)
    at t.invokeTask (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:1417:9591)
    at n.runTask (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:1417:5370)
    at o (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:1417:497)
t.handleError @ vendor.cd86af5b77b0c0342f39.bundle.js:735
vendor.cd86af5b77b0c0342f39.bundle.js:1417 Unhandled Promise rejection: Cannot read property 'document' of undefined ; Zone: angular ; Task: Promise.then ; Value: TypeError: Cannot read property 'document' of undefined
    at e.detectChangesInternal (https://material.angular.io/main.187804ec05c88255b68e.bundle.js:28:9953)
    at e.t.detectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:36:5749)
    at e.t.internalDetectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:36:5542)
    at e.detectChangesInternal (https://material.angular.io/main.187804ec05c88255b68e.bundle.js:28:7809)
    at e.t.detectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:36:5749)
    at t.detectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:1008:1301)
    at t.activate (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:529:1918)
    at t.placeComponentIntoOutlet (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:14476)
    at t.activateRoutes (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:14064)
    at https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:13299
    at Array.forEach (native)
    at t.activateChildRoutes (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:13277)
    at t.activate (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:12934)
    at https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:7777
    at e._next (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:57:3070) TypeError: Cannot read property 'document' of undefined
    at e.detectChangesInternal (https://material.angular.io/main.187804ec05c88255b68e.bundle.js:28:9953)
    at e.t.detectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:36:5749)
    at e.t.internalDetectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:36:5542)
    at e.detectChangesInternal (https://material.angular.io/main.187804ec05c88255b68e.bundle.js:28:7809)
    at e.t.detectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:36:5749)
    at t.detectChanges (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:1008:1301)
    at t.activate (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:529:1918)
    at t.placeComponentIntoOutlet (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:14476)
    at t.activateRoutes (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:14064)
    at https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:13299
    at Array.forEach (native)
    at t.activateChildRoutes (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:13277)
    at t.activate (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:12934)
    at https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:162:7777
    at e._next (https://material.angular.io/vendor.cd86af5b77b0c0342f39.bundle.js:57:3070)
i @ vendor.cd86af5b77b0c0342f39.bundle.js:1417

Activity

  1. changed the title [-]Sample App not working[/-] [+]Sample Apps not working[/+] on Mar 1, 2017
  2. devversion commented on Mar 1, 2017

    @devversion
    Member

    Thanks for the issue. This has been fixed with SHA cb57660.

    The correct links should show up within the next release of Angular Material.

  3. ssatguru commented on Mar 25, 2017

    @ssatguru

    still getting the same issue

  4. devversion commented on Mar 25, 2017

    @devversion
    Member

    There hasn't been a release yet. Coming soon,

  5. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  6. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions