UploadStuff with Next.js 12
@Michal Srb Hello! I'm having trouble setting up uploadstuff.
Following the guide, but cant seem to access the library as expected.
I'm using Next 12 in case there are any issues there.
This
import { UploadButton, UploadFileResponse } from "@xixixao/uploadstuff/react";
gives me
11 Replies
hey @zid , have you run
npm install
after adding @xixixao/uploadstuff/react
as a dependency?i ran the command
npm i @xixixao/uploadstuff
let me try reinstalling
still same issue,
i ran npm uninstall @xixixao/uploadstuff
then proceeded with npm i @xixixao/uploadstuff
in my packagejson i see "@xixixao/uploadstuff": "^0.0.5",
im using "next": "12.2.2",
looking inside node modules, i do see the UploadButton inside the esm folder
i should also note that im not using typescriptIs it an issue of
require
instead of import
?@zid I haven't had a chance to repro this yet, let us know if you were able to resolve the issue.
Hey @ian @Michal Srb , thanks for getting back to me, i just saw the messages.
I wasn't able to make this work, I simply followed the docs, but ended up moving forward with a more manual approach.
π im running into the same error when i do
my code runs locally tho, here's my tsconfig

currently importing
@winsoroaks can you publish a repo that reproduces the issue? If not, can you share your package.json as well?
@winsoroaks I cannot reproduce the issue.
Have you run
npm install
? Do you have the package in your node_modules
Can you tell me how you set up the repo? What steps did you take to get to this error?weird... i did. but no worries i copied and pasted the files into my repo and it works now. thank you for helping to look into itπ