-
Notifications
You must be signed in to change notification settings - Fork 2k
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
TypeScript compilation errors after updating @uppy/onedrive
to 4.1.2
#5559
Comments
I can't reproduce this: https://stackblitz.com/edit/vitejs-vite-wl8bw5sv?file=main.ts%3AL21 Are you sure all Uppy packages are on latest? Have you tried removing To continue, I would need a reproducible example. |
I forked your stackblitz and added a |
Looking into this now. |
The problem is still present with the latest packages released this morning. I'm not sure that you had to update all imports to use js instead of ts... AFAICT, this is the faulty line, which imports from |
I thought I took that import along in the refactor but apparently missed out! Changing all the imports was for the better though as importing ts extensions can cause unexpected behavior too. |
Initial checklist
Link to runnable example
No response
Steps to reproduce
Our Vite/React project started failing to build after updating Uppy packages to their latest versions:
It seemed odd that building our project would try to build TS files in
node_modules/@uppy/core/src
.After downgrading each Uppy package individually until the build failure was resolved, we isolated the issue to
@uppy/onedrive
version 4.1.2. Being on the latest version of all@uppy
packages but withonedrive 4.1.1
works fine.It seems like this
import
might be the culprit:https://github.com/transloadit/uppy/blob/main/packages/%40uppy/onedrive/src/OneDrive.tsx#L11
It imports from
src
and notlib
.This line was recently introduced in #5443, which was released as
@uppy/onedrive
version 4.1.2 (the faulty version).Expected behavior
Project should build without any errors.
Actual behavior
Project builds with errors.
The text was updated successfully, but these errors were encountered: