Skip to content

including modernizr causes white screen #6546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Jun 2, 2017 · 7 comments
Closed

including modernizr causes white screen #6546

ghost opened this issue Jun 2, 2017 · 7 comments
Labels
effort1: easy (hours) help wanted P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent severity3: broken type: bug/fix

Comments

@ghost
Copy link

ghost commented Jun 2, 2017

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.

@filipesilva
Copy link
Contributor

That's odd. @Brocco can you investigate?

@filipesilva filipesilva added help wanted effort1: easy (hours) P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent severity3: broken type: bug/fix labels Jun 6, 2017
@narainsagar
Copy link
Contributor

@filipesilva Can I give it a try?

@narainsagar
Copy link
Contributor

narainsagar commented 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

@filipesilva
Copy link
Contributor

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

@Ismaestro
Copy link

Ismaestro commented Aug 30, 2017

@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

@Ismaestro
Copy link

Ismaestro commented Aug 31, 2017

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.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
effort1: easy (hours) help wanted P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent severity3: broken type: bug/fix
Projects
None yet
Development

No branches or pull requests

4 participants