Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error #253

Open
mu250234 opened this issue Dec 19, 2017 · 1 comment
Open

Build error #253

mu250234 opened this issue Dec 19, 2017 · 1 comment

Comments

@mu250234
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants