Web Dev Cody
Web Dev Cody15mo ago

@Michal Srb any clue about this one

@Michal Srb any clue about this one
No description
8 Replies
Michal Srb
Michal Srb15mo ago
That's surprising, what's your setup/framework? Maybe retry npm i @xixixao/uploadstuff ?
Web Dev Cody
Web Dev CodyOP15mo ago
next14
Michal Srb
Michal Srb15mo ago
I just did
npx create-next-app@latest debug
cd debug
npm i @xixixao/uploadstuff
npx create-next-app@latest debug
cd debug
npm i @xixixao/uploadstuff
and added
import { UploadButton } from "@xixixao/uploadstuff/react";
import { UploadButton } from "@xixixao/uploadstuff/react";
to app/page.tsx and I'm not seeing this Restarting TS is another thing I'd try (which you probably did already)
Web Dev Cody
Web Dev CodyOP15mo ago
let me commit my repo
Web Dev Cody
Web Dev CodyOP15mo ago
GitHub
GitHub - webdevcody/the-obsidian-forge
Contribute to webdevcody/the-obsidian-forge development by creating an account on GitHub.
Web Dev Cody
Web Dev CodyOP15mo ago
oh wait i'm still on 13? one sec let me update all my libs
Michal Srb
Michal Srb15mo ago
It's the "moduleResolution": "node", in your tsconfig, you need "moduleResolution": "bundler", (I swear getting a React library to work with all permutations of typescript and frameworks is nigh impossible)
Web Dev Cody
Web Dev CodyOP15mo ago
nice ty!

Did you find this page helpful?