You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In an Angular 17 project, Install the latest beta versions (Uppy 4.0.0-beta.3) of @uppy/core, @uppy/dashboard, @uppy/tus using npm install @uppy/core@next @uppy/dashboard@next @uppy/tus@next.
Install the latest beta versions (Uppy 4.0.0-beta.3) of @uppy/angular, @uppy/drag-drop, @uppy/progress-bar, @uppy/status-bar, @uppy/utils using npm install @uppy/angular@next @uppy/drag-drop@next @uppy/progress-bar@next @uppy/status-bar@next @uppy/utils@next.
Declare a new Uppy property and Uppy dashboard configuration property (with custom values) inside the component (Configuration is shown in the above example with Angular 17).
Install loadash as a dev dependency sing npm i --save-dev @types/lodash. This is done since it gives a compilation error if I try to run the app while declaring a new Uppy object inside the component with uppy: Uppy<any, any> = new Uppy();.
Run the app using npm start.
Expected behavior
The application should compile properly and run.
The imported Uppy and DashboardOptions classes should not contain references to React and JSX files.
browserBackButtonClose should not give an error when used inside the DashboardOptions property as an option.
Link to the running example with the expected behaviour in Angular 16 using the same stable versions of the above used packages (minus the loadash package since it didn't give me an error).
Actual behavior
The application doesn't compile and run. It gives multiple errors such as:
The imported Uppy and DashboardOptions classes contain references to React and JSX files.
Using browserBackButtonClose as an option gives the following error when used inside the DashboardOptions property. TS2353: Object literal may only specify known properties, and 'browserBackButtonClose' does not exist in type 'DashboardMiscOptions<any, any> & DashboardInlineOptions'. [plugin angular-compiler]
The text was updated successfully, but these errors were encountered:
I tried following the same steps and recreating the issue in a local environment without using Stackblitz. And it does compile and run and display the uppy dashboard. However, the issue of browserBackButtonClose not being available as an option inside DashboardOptions property still persists.
And opening the DashboardOptions class imported in the component opens up Dashboard.tsx class file that contains errors.
If there are any issues in the steps that I used or if this is an issue on my end, please let me know.
Initial checklist
Link to runnable example
https://stackblitz.com/edit/stackblitz-starters-z1tmwy
Steps to reproduce
@uppy/core
,@uppy/dashboard
,@uppy/tus
usingnpm install @uppy/core@next @uppy/dashboard@next @uppy/tus@next
.@uppy/angular
,@uppy/drag-drop
,@uppy/progress-bar
,@uppy/status-bar
,@uppy/utils
usingnpm install @uppy/angular@next @uppy/drag-drop@next @uppy/progress-bar@next @uppy/status-bar@next @uppy/utils@next
.npm i --save-dev @types/lodash
. This is done since it gives a compilation error if I try to run the app while declaring a new Uppy object inside the component withuppy: Uppy<any, any> = new Uppy();
.npm start
.Expected behavior
Uppy
andDashboardOptions
classes should not contain references to React and JSX files.browserBackButtonClose
should not give an error when used inside theDashboardOptions
property as an option.Link to the running example with the expected behaviour in Angular 16 using the same stable versions of the above used packages (minus the loadash package since it didn't give me an error).
Actual behavior
Uppy
andDashboardOptions
classes contain references to React and JSX files.browserBackButtonClose
as an option gives the following error when used inside theDashboardOptions
property.TS2353: Object literal may only specify known properties, and 'browserBackButtonClose' does not exist in type 'DashboardMiscOptions<any, any> & DashboardInlineOptions'. [plugin angular-compiler]
The text was updated successfully, but these errors were encountered: