#Package error on server side in production

1 messages · Page 1 of 1 (latest)

shrewd cave
#

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.

shrewd cave
#

[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

shadow glacier
#

a reproduction would be helpful @shrewd cave

#

(can be without your credentials of course)

shrewd cave
shadow glacier
#

basically a runnable repository + instructions on how to reproduce the problem

shrewd cave
shadow glacier
#

building it for prod locally works too?

shrewd cave
#

I saw some issues on it on github aswell, telling to put it in build transpile, but didnt work unfortunately either

shrewd cave
shrewd cave
#

Yep, it only is on DO, not in my prod on localhost.

Used:

npm run build
node .output/server/index.mjs```

@shadow glacier
#

So im not sure if a reproduction is gonna cause this issue to reproduce

shadow glacier
#

Best to clear node modules and try again

#

Just do double check

shrewd cave
#

Yep, all didnt work

shrewd cave
shadow glacier
#

like, can you inspect what is used on DO

#

and see if the package is really not there?