Giter VIP home page Giter VIP logo

Comments (6)

Avijit-Sarkar avatar Avijit-Sarkar commented on July 20, 2024

same problem started to happen

from breadit.

joschan21 avatar joschan21 commented on July 20, 2024

That's not good, might be something UploadThing or EditorJS have changed under the hood

from breadit.

SaiSawant1 avatar SaiSawant1 commented on July 20, 2024

I have just finished the whole video and not getting the error you should reevaluate your code.

from breadit.

ryanyogan avatar ryanyogan commented on July 20, 2024

Either downgrade upload-thing to version 4.x
npm install [email protected]

Or use the latest documentation as things changed in version 5.0.0

from breadit.

krsnamara avatar krsnamara commented on July 20, 2024

Yes I am getting this same issue. Will look into the documentation or downgrade as you have suggested

from breadit.

krsnamara avatar krsnamara commented on July 20, 2024

Looking at the error message I opened up an internal file and found that uploadthing is just S3 under the hood. Going to get back to it tomorrow and add either S3 or supabase as the image storage function and toss uploadthing.

Image Tool: uploading failed because of TypeError: Cannot read properties of undefined (reading 'map')
    at uploadFilesInternal (index.js:168:27)
    at eval (index.js:234:9)
    at Object.uploadByFile (Editor.tsx:72:50)
    at eval `(bundle.js:10:35524)
// Get presigned URL for S3 upload
    const s3ConnectionRes = await reportEventToUT("upload", {
        input: "input"in opts ? opts.input : null,
        files: opts.files.map((f)=>({
            name: f.name,
            size: f.size,
            type: f.type
        }))
    });    

from breadit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.