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
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: