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

Production build fix #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Production build fix #2

wants to merge 1 commit into from

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