[GH-ISSUE #255] latest release 0.9 fails to build #67

Closed
opened 2026-02-26 18:45:13 +03:00 by kerem · 4 comments
Owner

Originally created by @happysalada on GitHub (Aug 14, 2023).
Original GitHub issue: https://github.com/documenso/documenso/issues/255

Hi! I tried packaging this for nixos and got a build failure on linux.

Type error: Module '"@prisma/client"' has no exported member 'SubscriptionStatus'.
  1 | import { useSubscription } from "@documenso/lib/stripe"
  2 | import { PaperAirplaneIcon } from "@heroicons/react/24/outline";
> 3 | import { SubscriptionStatus } from '@prisma/client'
    |          ^
  4 | import Link from "next/link";
  5 | 
  6 | export const BillingWarning = () => {
ERROR: `npm build` failed

Are you considering making another release soon ?
full details of the build

Originally created by @happysalada on GitHub (Aug 14, 2023). Original GitHub issue: https://github.com/documenso/documenso/issues/255 Hi! I tried packaging this for nixos and got a build failure on linux. ``` Type error: Module '"@prisma/client"' has no exported member 'SubscriptionStatus'. 1 | import { useSubscription } from "@documenso/lib/stripe" 2 | import { PaperAirplaneIcon } from "@heroicons/react/24/outline"; > 3 | import { SubscriptionStatus } from '@prisma/client' | ^ 4 | import Link from "next/link"; 5 | 6 | export const BillingWarning = () => { ERROR: `npm build` failed ``` Are you considering making another release soon ? [full details of the build](https://logs.ofborg.org/?key=nixos/nixpkgs.248647&attempt_id=b7b7adf1-a0fe-436b-9eb7-cb7b39d359b7)
kerem closed this issue 2026-02-26 18:45:13 +03:00
Author
Owner

@ephraimduncan commented on GitHub (Aug 14, 2023):

Hi, have you tried

npx prisma generate
<!-- gh-comment-id:1676615846 --> @ephraimduncan commented on GitHub (Aug 14, 2023): Hi, have you tried ``` npx prisma generate ```
Author
Owner

@happysalada commented on GitHub (Aug 14, 2023):

Thanks for coming back to me!
I had a look at the Dockerfile and it doesn't run that step.
It seems prisma is not part of the devdependencies. Is it supposed to be installed separately ? Or maybe prisma is part of the @documenso/prisma.
It seems that on linux, npm can't find prisma from the packages installed. I had no problem on macos.

Just for context I'm trying to package this for nixos, to enable more people to test it.
(in nixos, I only have access to prisma 5.0.0 as an outside dependency, so it generates a warning, but it looks like it built fine).

Thinking about this some more, it looks like somehow on linux, npm is not finding the prisma dependency from the package-lock and that is what is causing the problem.

<!-- gh-comment-id:1677662011 --> @happysalada commented on GitHub (Aug 14, 2023): Thanks for coming back to me! I had a look at the [Dockerfile](https://github.com/documenso/documenso/blob/main/docker/Dockerfile) and it doesn't run that step. It seems prisma is not part of the devdependencies. Is it supposed to be installed separately ? Or maybe prisma is part of the @documenso/prisma. It seems that on linux, npm can't find prisma from the packages installed. I had no problem on macos. Just for context I'm trying to package this for nixos, to enable more people to test it. (in nixos, I only have access to prisma 5.0.0 as an outside dependency, so it generates a warning, but it looks like it built fine). Thinking about this some more, it looks like somehow on linux, npm is not finding the prisma dependency from the package-lock and that is what is causing the problem.
Author
Owner

@happysalada commented on GitHub (Aug 16, 2023):

I had a look at the package-lock and couldn't find anything wrong with prisma.
I have used the workaround npx prisma generate for now.
I'll update this issue after prisma is updated to 5.0.

<!-- gh-comment-id:1680349433 --> @happysalada commented on GitHub (Aug 16, 2023): I had a look at the package-lock and couldn't find anything wrong with prisma. I have used the workaround `npx prisma generate` for now. I'll update this issue after prisma is updated to 5.0.
Author
Owner

@Mythie commented on GitHub (Dec 15, 2023):

Closing as we now have Dockerfile builds as part of our CI 😄

<!-- gh-comment-id:1857779803 --> @Mythie commented on GitHub (Dec 15, 2023): Closing as we now have `Dockerfile` builds as part of our CI 😄
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#67
No description provided.