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.

BUG: Ionic 5 rc.1 doesn't compile to production

See original GitHub issue

[x ] 5.x

I’m submitting a …

[ x] bug report

Current behavior: Ionic 5 doesn’t compile to production

Expected behavior: Ionic 5 compiles to production

Steps to reproduce:

  1. ionic start myApp tab
  2. cd myApp
  3. npm install “@ionic/angular@next” --save
  4. ionic build --prod

Related code:

ERROR in ./node_modules/@ionic/angular/fesm2015/ionic-angular.js Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js): TypeError: Cannot read property ‘kind’ of undefined

A sample application via GitHub

StackBlitz (https://stackblitz.com)

Plunker (http://plnkr.co/edit/cpeRJs?p=preview)

–>

insert short code snippets here

Other information:

Ionic info:

insert the output from ionic info here

Issue Analytics

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

github_iconTop GitHub Comments

5reactions
brandyscarneycommented, Jan 30, 2020

Thank you for the issue! Could you please try updating the following dependencies and see if this fixes it for you:

dependencies:

"@angular/common": "8.2.13",
"@angular/core": "8.2.13",
"@angular/forms": "8.2.13",
"@angular/platform-browser": "8.2.13",
"@angular/platform-browser-dynamic": "8.2.13",
"@angular/pwa": "^0.803.23",
"@angular/router": "8.2.13",
"@angular/service-worker": "^8.2.14",

dev dependencies:

"@angular-devkit/architect": "^0.803.23",
"@angular-devkit/build-angular": "^0.803.23",
"@angular-devkit/core": "^8.3.23",
"@angular-devkit/schematics": "^8.3.23",
"@angular/cli": "^8.3.23",
"@angular/compiler": "8.2.13",
"@angular/compiler-cli": "8.2.13",
"@angular/language-service": "^8.2.14",
"@ionic/angular-toolkit": "^2.1.2",
0reactions
ionitron-bot[bot]commented, Feb 29, 2020

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ionic 5 --prod build error
It works fine in development but when I run “ionic build --prod” or “ionic build --prod ... BUG: Ionic 5 rc.1 doesn't compile...
Read more >
The Hyundai Ioniq 5 Has One Huge Problem - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >
2022 Ioniq 5 Owner's Manual
This manual applies to all models of this vehicle and includes descriptions and explanations of optional as well as standard equipment. As a...
Read more >
Hyundai Ioniq 5 sold out, no more orders until early 2022
Hyundai's Ioniq 5 next-generation electric car will be in high demand and short supply, but another allocation is due in the new year....
Read more >
Polestar shares its EV carbon impact data to offer ... - Electrek
Making cars electric is not the end game, it is a starting point. ... net zero production emissions, but our LCA shows that...
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