transloadit / uppy

The next open source file uploader for web browsers :dog:
https://uppy.io
MIT License
29.02k stars 2k forks source link

Not able to use Uppy dashboard in Angular 18 #5481

Open anuj9196 opened 19 hours ago

anuj9196 commented 19 hours ago

Initial checklist

Link to runnable example

No response

Steps to reproduce

I installed the following packages in Angular 18 application

"@uppy/angular": "^0.7.0",
"@uppy/core": "^4.2.1",
"@uppy/dashboard": "^4.1.0",

Followed the following instructions to setup in Angular https://uppy.io/docs/angular/

Added this code in the component.html file

<uppy-dashboard [uppy]="uppy"> </uppy-dashboard>

and component.ts file as

import {Component} from '@angular/core';
import {UppyAngularDashboardModule} from "@uppy/angular";
import {Uppy} from "@uppy/core";

@Component({
  selector: 'app-file-upload',
  standalone: true,
  imports: [
    UppyAngularDashboardModule
  ],
  templateUrl: './file-upload.component.html',
  styleUrls: [
    './file-upload.component.scss',
  ],
})
export class FileUploadComponent {
  uppy: Uppy = new Uppy({
    debug: true, autoProceed: true, animateOpenClose: false
  });
}

However the animateOpenClose is giving an error as

Screenshot 2024-10-01 at 9 52 29 AM

Also, the HTML show the following error

Screenshot 2024-10-01 at 9 53 13 AM

Expected behavior

The code should be working as given in the doc. Or the doc should be updated with clear instructions.

Actual behavior

I am getting error in declaring options for the uppy-dashboard component.