npm 5 and file: URLs
Alex R. Young

This breaks projects built with angular-cli and rollup silently. You will see a cryptic error at runtime, something like:

Unexpected value ‘YOUR_COMPONENT’ declared by the module ‘YOUR_MODULE’. Please add a @Pipe/@Directive/@Component annotation.


…Please add a @NgModule annotation.

Angular-cli has documented this:

Like what you read? Give Karan K a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.