I’m struggling to get Uppy to work after recently upgrading to Next.js 12 and React 18.
next start. Any page that calls
useUppy results in a blank page and a console error.
Uncaught SyntaxError: Unexpected identifier pointing to this line
I have added a unique id to the Uppy plugin, as the error message suggests.
This does not occur when I run
Any help or ideas would be most appreciated.
Are you server-side rendering Uppy? I don’t think that’s possible. Seems you are re-adding a plugin somehow, resulting in this crash. Are you
initializing Uppy correctly?
I didn’t get this error eith Next12 and minify enabled… Are you using the useUppy() hook to instanciate the Uppy instance?
I’ve struggled to get it to work too, and I wrote my problems and solution here
The roller coaster continues… I solved it in the end.
The problem was with this from the code from the first post:
id: "SomeID" <-- this one