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

Examples don't work #15

Open
souvenirpixels opened this issue Oct 15, 2020 · 1 comment
Open

Examples don't work #15

souvenirpixels opened this issue Oct 15, 2020 · 1 comment

Comments

@souvenirpixels
Copy link

Steps to reproduce:

clone then run ng build filestack-angular. Then got the following errors. I also cut and paste code into a blank project and most example didn't work. I did get one example working with ng-picker-overlay but was not able to set options from FilestackModule.forRoot({ apikey: 'APIkey' }, options) as documented. Is this the only Angular example code? Is there anything that is more up to date and working with current versions?

Compiling TypeScript sources through ngc
ERROR: projects/filestack-angular/src/lib/picker/pickerBase.component.ts:14:23 - error NG2007: Class is using Angular features but is not decorated. Please add an explicit Angular decorator.

14 export abstract class PickerBaseComponent implements OnInit, OnDestroy {
~~~~~~~~~~~~~~~~~~~
projects/filestack-angular/src/lib/picker/pickerOverlay.component.ts:18:14 - error NG2006: The component PickerOverlayComponent inherits its constructor from PickerBaseComponent, but the latter does not have an Angular decorator of its own. Dependency injection will not be able to resolve the parameters of PickerBaseComponent's constructor. Either add a @directive decorator to PickerBaseComponent, or add an explicit constructor to PickerOverlayComponent.

18 export class PickerOverlayComponent extends PickerBaseComponent implements AfterContentInit {
~~~~~~~~~~~~~~~~~~~~~~
projects/filestack-angular/src/lib/picker/pickerInline.component.ts:13:14 - error NG2006: The component PickerInlineComponent inherits its constructor from PickerBaseComponent, but the latter does not have an Angular decorator of its own. Dependency injection will not be able to resolve the parameters of PickerBaseComponent's constructor. Either add a @directive decorator to PickerBaseComponent, or add an explicit constructor to PickerInlineComponent.

13 export class PickerInlineComponent extends PickerBaseComponent implements AfterContentInit {
~~~~~~~~~~~~~~~~~~~~~
projects/filestack-angular/src/lib/picker/pickerDropPane.component.ts:10:14 - error NG2006: The component PickerDropPaneComponent inherits its constructor from PickerBaseComponent, but the latter does not have an Angular decorator of its own. Dependency injection will not be able to resolve the parameters of PickerBaseComponent's constructor. Either add a @directive decorator to PickerBaseComponent, or add an explicit constructor to PickerDropPaneComponent.

10 export class PickerDropPaneComponent extends PickerBaseComponent implements AfterContentInit {
~~~~~~~~~~~~~~~~~~~~~~~

An unhandled exception occurred: projects/filestack-angular/src/lib/picker/pickerBase.component.ts:14:23 - error NG2007: Class is using Angular features but is not decorated. Please add an explicit Angular decorator.

14 export abstract class PickerBaseComponent implements OnInit, OnDestroy {
~~~~~~~~~~~~~~~~~~~
projects/filestack-angular/src/lib/picker/pickerOverlay.component.ts:18:14 - error NG2006: The component PickerOverlayComponent inherits its constructor from PickerBaseComponent, but the latter does not have an Angular decorator of its own. Dependency injection will not be able to resolve the parameters of PickerBaseComponent's constructor. Either add a @directive decorator to PickerBaseComponent, or add an explicit constructor to PickerOverlayComponent.

18 export class PickerOverlayComponent extends PickerBaseComponent implements AfterContentInit {
~~~~~~~~~~~~~~~~~~~~~~
projects/filestack-angular/src/lib/picker/pickerInline.component.ts:13:14 - error NG2006: The component PickerInlineComponent inherits its constructor from PickerBaseComponent, but the latter does not have an Angular decorator of its own. Dependency injection will not be able to resolve the parameters of PickerBaseComponent's constructor. Either add a @directive decorator to PickerBaseComponent, or add an explicit constructor to PickerInlineComponent.

13 export class PickerInlineComponent extends PickerBaseComponent implements AfterContentInit {
~~~~~~~~~~~~~~~~~~~~~
projects/filestack-angular/src/lib/picker/pickerDropPane.component.ts:10:14 - error NG2006: The component PickerDropPaneComponent inherits its constructor from PickerBaseComponent, but the latter does not have an Angular decorator of its own. Dependency injection will not be able to resolve the parameters of PickerBaseComponent's constructor. Either add a @directive decorator to PickerBaseComponent, or add an explicit constructor to PickerDropPaneComponent.

10 export class PickerDropPaneComponent extends PickerBaseComponent implements AfterContentInit {
~~~~~~~~~~~~~~~~~~~~~~~

See "C:\Users\james\AppData\Local\Temp\ng-BNPSC9\angular-errors.log" for further details.

@vdias38
Copy link

vdias38 commented Jul 22, 2021

To make it working add @directive decorator and its import on projects/filestack-angular/src/lib/picker/pickerBase.component.ts

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