Skip to content

Conversation

DmytriE
Copy link

@DmytriE DmytriE commented Apr 2, 2018

I have added a Directive decorator to the dist/prism.component.d.ts which fixes an error when compiling this component into a production build in Angular 5. Without this, it returns a decorator error. Otherwise, I was required to put the full path name to the node_modules folder for this particular node module. Please note that the Directive selector property is not used and therefor is arbitrary.

Thank you in advance.
This is one very useful Angular 5 component that I am using all the time and want to continue to do so.
Please contact me if you have questions concerning this pull request.

Please reference the following error:

ERROR in : Unexpected value 'PrismComponent in /Users/dmytrieck/Documents/TCG/Dataweb/node_modules/angular-prism/dist/angular-prism.js' declared by the module 'ViewsModule in /Users/dmytrieck/Documents/TCG/Dataweb/src/app/modules/views/views.module.ts'. Please add a @Pipe/@Directive/@component annotation.

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

Successfully merging this pull request may close these issues.

1 participant