Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Examples don't work #15

Copy link
Copy link
Open
Open
Copy link
@souvenirpixels

Description

@souvenirpixels
Issue body actions

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.