question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

including modernizr causes white screen

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
filipesilvacommented, Jul 17, 2017

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

2reactions
narainsagarcommented, Jul 15, 2017

@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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Modernizr + bootstrap only showing blank white page issue
This causes the html tag to get display:none and a complete blank page with correctly made up invisible content to show up.
Read more >
Bootstrap & Modernizr custom build white screen of death
Adding a Modernizr custom build into my project with Bootstrap prevents anything from rendering. Here is the jsfiddle: https://jsfiddle.net/ ...
Read more >
60789 - Blank page when accessing Modernizr 1.6 page
Some visible content with modernizr test results. What happens instead? Most of the times (but not always) the page is blank
Read more >
Optimize JavaScript Code causes white/blank screen on ...
Hi,. When I enable “Optimize JavaScript Code” and use mobile device: first time I load any page white/blank screen. second time I load/refresh...
Read more >
How to Resolve the WordPress White Screen of Death
Go through your website and admin dashboard to find clues. Sometimes the issue is only with the admin dashboard and doesn't affect the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found