Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vercel/NextJS build fails indicating Elysia is not installed #168

Open
rekkisomo opened this issue Nov 9, 2024 · 1 comment
Open

Vercel/NextJS build fails indicating Elysia is not installed #168

rekkisomo opened this issue Nov 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@rekkisomo
Copy link

rekkisomo commented Nov 9, 2024

What version of Elysia is running?

1.1.24

What platform is your computer?

Microsoft Windows NT 10.0.26120.0 x64

What steps can reproduce the bug?

Admittedly, our setup is unconventional. As we wanted the eden types to be usable by people who don't have access to our server's repository, we have the types built by the server then sent to the repo. This works (and correctly typed) on the client when running the next dev server, as well as passing linting by intellij, but fails linting when being built.

  1. Install Wolfbite-Labs/voyagesdk-ts as a dependency
  2. Do the following in a Next.JS project:
const { vg } = new VoyageSDK()

const server= vg.server.describeServer.get()
//       ^? returns { availableUserDomains: [], ...} fine, with IDE typing
//       but building fails indicating no Elysia installed, even though it is.
  1. Build using next build

What is the expected behavior?

No response

What do you see instead?

Type error Property 'pack' does not exist on type '"Please install Elysia before using Eden" & { supabase?: SupabaseClient<any, any, any> | undefined; }'.
image

IntelliJ linting reports:
image

Additional information

elysia-autoload is being used as well, but don't believe its an issue there

Have you try removing the node_modules and bun.lockb and try again yet?

Yes

@rekkisomo rekkisomo added the bug Something isn't working label Nov 9, 2024
@rekkisomo
Copy link
Author

Using Eden types directly from the server (import {ServerTypes} from "../some-server" instead from the build results in the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant