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.
12 Replies
[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
a reproduction would be helpful @Rejox
(can be without your credentials of course)
Sorry that would be my first, how to address a reproduction for it to be useful?
Nuxt
Reporting Bugs · Nuxt Community
One of the most valuable roles in open source is taking the time to report bugs helpfully.
basically a runnable repository + instructions on how to reproduce the problem
But its only when I build it on digital ocean though, not locally. Do u think people will reproduce it on DO?
building it for prod locally works too?
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:
@manniL / TheAlexLichter
So im not sure if a reproduction is gonna cause this issue to reproduce
And you use the same in DO?
Best to clear node modules and try again
Just do double check
Yep, all didnt work
I think im having to implement the api instead of using sdk, cant find no fix
but thats weird
like, can you inspect what is used on DO
and see if the package is really not there?
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