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.

App-Shell/Ivy: Cannot read property 'moduleType' of undefined

See original GitHub issue

🐞 bug report

Affected Package

ng run project-name:app-shell ng run project-name:app-shell:production

Is this a regression?

This has never worked for me anytime I have tried to enable Ivy.

Description

When generating a new Angular application with --enableIvy and adding the app shell, the application fails to load.

  • This occurs for both dev and prod builds.
  • This goes away if building a project without --enableIvy.

πŸ”¬ Minimal Reproduction

ng new repro-app --enableIvy --routing --style=scss ng generate app-shell --client-project repro-app --universal-project server-app ng run repro-app:app-shell

https://github.com/EigenTheory/repro-app/

πŸ”₯ Exception or Error

Cannot read property 'moduleType' of undefined

image

🌍 Your Environment

Angular Version: image

Anything else relevant?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
alan-agius4commented, Jan 7, 2020

@EigenTheory, enableIvy flag is not longer provided with ng new command as now Ivy is the default.

0reactions
angular-automatic-lock-bot[bot]commented, Feb 9, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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