jvandemo / generator-angular2-library

Yeoman generator to create an Angular library
MIT License
752 stars 122 forks source link

Build error #253

Open mu250234 opened 6 years ago

mu250234 commented 6 years ago

I have two libraries "drafting-common" & "drafting-services" built using angular-4 and bundled with Rollup in two formats = es,umd I am using them in angular-cli project by packing the libraries using "npm pack" and install the tgz files under project directory, so i can reference the modules and services from both libraries inside the angular-cli project.

when i run ng build the result is webpack: compiled successfully. then ng serve it also compile & run successfully, but the issue comes when I browse http://localhost:4200 to load the project page, I am getting this error

Uncaught Error: Unexpected value 'ButtonComponent' declared by the module 'SharedModule'. Please add a @Pipe/@Directive/@Component annotation. where SharedModule is exposed by drafting-common library, and ButtonComponent is an exposed component in it.

xrobert35 commented 6 years ago

Did you solve your issue ? It will be difficult to help you without code. Perhaps my comment here can help you ? #239