generator-angular2-library icon indicating copy to clipboard operation
generator-angular2-library copied to clipboard

Build error

Open mu250234 opened this issue 7 years ago • 1 comments

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.

mu250234 avatar Dec 19 '17 07:12 mu250234

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

xrobert35 avatar Jan 15 '18 19:01 xrobert35