ablc
ablc
TTCTheo's Typesafe Cult
Created by ablc on 6/7/2023 in #questions
SyntaxError for UploadThing
Removing it fixed it.
18 replies
TTCTheo's Typesafe Cult
Created by ablc on 6/7/2023 in #questions
SyntaxError for UploadThing
Hey @markr, I've fixed it, It had to do with:
.onUploadComplete(async ({ metadata, file }) => {})
.onUploadComplete(async ({ metadata, file }) => {})
This metadata which remained unused.
18 replies
TTCTheo's Typesafe Cult
Created by ablc on 6/7/2023 in #questions
SyntaxError for UploadThing
18 replies
TTCTheo's Typesafe Cult
Created by ablc on 6/7/2023 in #questions
SyntaxError for UploadThing
Okay yeah, I've brought it back to the master branch, and still I've replicated
- error SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
- error SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
18 replies
TTCTheo's Typesafe Cult
Created by ablc on 6/7/2023 in #questions
SyntaxError for UploadThing
18 replies
TTCTheo's Typesafe Cult
Created by ablc on 6/7/2023 in #questions
SyntaxError for UploadThing
18 replies
TTCTheo's Typesafe Cult
Created by ablc on 6/7/2023 in #questions
SyntaxError for UploadThing
Yeah it surely is odd, cause the moment <UploadButton ... /> or <UploadDropzone ... /> is uncommented/pasted in, the page breaks. And all I get in the logs are:
- error SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
- error SyntaxError: Unexpected token < in JSON at position 0
at JSON.parse (<anonymous>)
Where everything else seems to be fine, and atleast 1:1 with the docs.
18 replies
TTCTheo's Typesafe Cult
Created by ablc on 6/7/2023 in #questions
SyntaxError for UploadThing
And I use npm.
18 replies
TTCTheo's Typesafe Cult
Created by ablc on 6/7/2023 in #questions
SyntaxError for UploadThing
18 replies
TTCTheo's Typesafe Cult
Created by ablc on 6/7/2023 in #questions
SyntaxError for UploadThing
Currently trying the app router examples here to no avail too: https://github.com/pingdotgg/uploadthing/tree/main/examples/appdir
18 replies
TTCTheo's Typesafe Cult
Created by ablc on 3/24/2023 in #questions
Property 'authorId' does not exist on type 'Post[]'.
oh my god you're right, i was accessing the wrong thing being 1 letter off, posts instead of post my bad it was 3am :')
7 replies