angular-cli
angular-cli copied to clipboard
Cannot GET doesn't indicate why...
π feature request
Relevant Package
This feature request is for @angular/cli or compilerDescription

We had issued ng serve which was watching for changes. On a dependency change to an internal angular library, which compiled ok... We received this message above.
Going back to the terminal window we saw this:
PS C:\Users\name\source\repos\J\mglib> ng serve demo
chunk {main} main.js, main.js.map (main) 2.06 kB [initial] [rendered]
chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 169 kB [initial] [rendered]
chunk {runtime} runtime.js, runtime.js.map (runtime) 6.15 kB [entry] [rendered]
chunk {styles} styles.js, styles.js.map (styles) 14 kB [initial] [rendered]
chunk {vendor} vendor.js, vendor.js.map (vendor) 343 kB [initial] [rendered]
Date: 2020-06-24T13:51:46.683Z - Hash: 2091c10c953f6c16c475 - Time: 6335ms
// this error was our fault, shouldn't this shown in the served page?
ERROR in The target entry-point "lib" has missing dependencies:
- projects/MG/src/mg/services/signalr.service
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
Clearly our fault but....
Here's the prod compile of our library.
File change detected. Starting incremental compilation...
------------------------------------------------------------------------------
Building entry point 'lib'
------------------------------------------------------------------------------
Compiling TypeScript sources through ngc
Bundling to FESM2015
WARNING: 'OnInit' and 'AfterViewInit' are imported from external module '@angular/core' but never used
Bundling to FESM5
WARNING: '__read' is imported from external module 'tslib' but never used
WARNING: 'OnInit' and 'AfterViewInit' are imported from external module '@angular/core' but never used
Bundling to UMD
WARNING: No name was provided for external module '@fortawesome/free-solid-svg-icons' in output.globals β guessing 'freeSolidSvgIcons'dSvgIcons' gularSvgIcons'
WARNING: No name was provided for external module '@fortawesome/free-regular-svg-icons' in output.globals β guessing 'freeRe 'signalr_service'gularSvgIcons' ntawesome'
WARNING: No name was provided for external module 'projects/MG/src/mg/services/signalr.service' in output.globals β guessing 'signalr_service'
WARNING: No name was provided for external module '@fortawesome/angular-fontawesome' in output.globals β guessing 'angularFontawesome'
WARNING: No name was provided for external module '@aspnet/signalr' in output.globals β guessing 'signalr'
Minifying UMD bundle
Writing package metadata
Built lib
------------------------------------------------------------------------------
Built Angular Package
- from: C:\Users\myName\source\repos\John-Peters\mglib\projects\MG
- to: C:\Users\myName\source\repos\John-Peters\mglib\dist\lib
------------------------------------------------------------------------------
Compilation complete. Watching for file changes...
Describe the solution you'd like
- It's ok to serve the page, but show the error instead of cannot get.
- We don't understand how ng build --prod did not catch this error.
Describe alternatives you've considered
Fix the library dependeny issue.
Duplicate of https://github.com/angular/angular-cli/issues/17487
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.