N
Nuxt5mo ago
Rejox

Package error on server side in production

Hey guys, I have used @lemonsqueezy/lemonsqueezy.js SDK to integrate it within my store. In my localhost development it all went well and is working. But now when I push and build it on my host (Digital Ocean), I get this error response back from calling the api endpoint.
No description
No description
12 Replies
Rejox
RejoxOP5mo ago
[forgem-dynmap-saas] [2024-07-05 12:30:16] │ [forgem-dynmap-saas] [2024-07-05 12:30:16] │ WARN "@lemonsqueezy/lemonsqueezy.js" is imported by "server/api/v1/license/validate.post.ts", but could not be resolved – treating it as an external dependency. [forgem-dynmap-saas] [2024-07-05 12:30:1 This error is in my digital ocean build logs
manniL
manniL5mo ago
a reproduction would be helpful @Rejox (can be without your credentials of course)
Rejox
RejoxOP5mo ago
Sorry that would be my first, how to address a reproduction for it to be useful?
manniL
manniL5mo ago
Nuxt
Reporting Bugs · Nuxt Community
One of the most valuable roles in open source is taking the time to report bugs helpfully.
manniL
manniL5mo ago
basically a runnable repository + instructions on how to reproduce the problem
Rejox
RejoxOP5mo ago
But its only when I build it on digital ocean though, not locally. Do u think people will reproduce it on DO?
manniL
manniL5mo ago
building it for prod locally works too?
Rejox
RejoxOP5mo ago
I saw some issues on it on github aswell, telling to put it in build transpile, but didnt work unfortunately either I have actually never done that, will do that asap Yep, it only is on DO, not in my prod on localhost. Used:
npm run build
node .output/server/index.mjs
npm run build
node .output/server/index.mjs
@manniL / TheAlexLichter So im not sure if a reproduction is gonna cause this issue to reproduce
manniL
manniL5mo ago
And you use the same in DO? Best to clear node modules and try again Just do double check
Rejox
RejoxOP5mo ago
Yep, all didnt work I think im having to implement the api instead of using sdk, cant find no fix
manniL
manniL5mo ago
but thats weird like, can you inspect what is used on DO and see if the package is really not there?
Rejox
RejoxOP5mo ago
I haven't found yet where I can do that on an App Platform, but if I find if its possible I'll surely do
Want results from more Discord servers?
Add your server