Skip to content

including modernizr causes white screen #6546

Closed

Description

Bug Report or Feature Request (mark with an x)

- [X ] bug report -> please search issues before submitting
- [ ] feature request

Versions.

$ ng --version
    _                      _                 ____ _     ___
   / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
  / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
 / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
/_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
               |___/
@angular/cli: 1.0.0
node: 6.9.2
os: win32 x64
@angular/animations: 4.0.1
@angular/common: 4.0.1
@angular/compiler: 4.0.1
@angular/core: 4.0.1
@angular/forms: 4.0.1
@angular/http: 4.0.1
@angular/platform-browser: 4.0.1
@angular/platform-browser-dynamic: 4.0.1
@angular/router: 4.0.1
@angular/cli: 1.0.0
@angular/compiler-cli: 4.0.1
@angular/platform-server: 4.0.1

Repro steps.

  1. Generated modernizr.js:
.\node_modules\.bin\modernizr -c .\node_modules\modernizr\lib\config-all.json
  1. Moved to src\js folder (src is the root of my app)
  2. Added "js/modernizr.js" to .angular-cli.json
  3. Running ng serve shows a blank screen in the browser. No errors.

The log given by the failure.

None

Desired functionality.

The site should keep working.

Activity

  1. filipesilva commented on Jun 6, 2017

    @filipesilva
    Contributor

    That's odd. @Brocco can you investigate?

  2. added
    help wantedLabel noting an issue which the team is looking for contribution from the community to fix
    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
    on Jun 6, 2017
  3. narainsagar commented on Jul 14, 2017

    @narainsagar
    Contributor

    @filipesilva Can I give it a try?

  4. narainsagar commented on Jul 15, 2017

    @narainsagar
    Contributor

    @rolandoldengarm @filipesilva fyi. Just tried the above repro steps on the latest release v1.2.1 and It seems to be no issue at all. i.e.,

    @angular/cli: 1.2.1
    node: 7.9.0
    os: darwin x64
    

    screen shot 2017-07-15 at 1 41 57 pm

  5. filipesilva commented on Jul 17, 2017

    @filipesilva
    Contributor

    @narainsagar thanks for the repro, closing as working as intended 👍

  6. Ismaestro commented on Aug 30, 2017

    @Ismaestro

    @rolandoldengarm said that it was a black screen. Modernizr works, but the page is in blank as well for me too. No errors.

       _                      _                 ____ _     ___
       / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
      / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
     / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
    /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                   |___/
    @angular/cli: 1.1.2
    node: 7.1.0
    os: darwin x64
    
  7. Ismaestro commented on Aug 31, 2017

    @Ismaestro

    I solved the blank page not including all modernizr tests. Just a few, and download modernizr-custom.js from here and include the file in .angular-cli.json.

  8. angular-automatic-lock-bot commented on Sep 7, 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.

  9. locked and limited conversation to collaborators on Sep 7, 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

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenteffort1: easy (hours)help wantedLabel noting an issue which the team is looking for contribution from the community to fixseverity3: brokentype: bug/fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions