You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This feature request is for @angular/cli or compiler
Description
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 demochunk {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.
The text was updated successfully, but these errors were encountered:
🚀 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:
Clearly our fault but....
Here's the prod compile of our library.
Describe the solution you'd like
Describe alternatives you've considered
Fix the library dependeny issue.The text was updated successfully, but these errors were encountered: