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

Interface requests return 500 on Windows but work normally on Mac. #900

Open
fanmucc opened this issue Oct 28, 2024 · 1 comment
Open

Interface requests return 500 on Windows but work normally on Mac. #900

fanmucc opened this issue Oct 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@fanmucc
Copy link

fanmucc commented Oct 28, 2024

What version of Elysia is running?

1.1.20

What platform is your computer?

windows x64

What steps can reproduce the bug?

Follow the Next.js installation method to normally import and export, and configure the same development port as Next.js: localhost:4000.

// Use the Bun package manager.

// Use the treaty function to create a client proxy for the Elysia server and use it in the root layout page.
// app/libs/api
import { treaty } from '@elysiajs/eden';
import { App } from '../api';

export const api = treaty(typeof window === 'undefined' ? http://localhost:4000 : 'http://localhost:4000').api;
// app/[lng]/layout.ts
import { App } from '@/app/api';
import { treaty } from '@elysiajs/eden';

export const client = treaty('http://localhost:4000');

What is the expected behavior?

Consistent performance on Windows and Mac.

What do you see instead?

No response

Additional information

No response

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

No response

@fanmucc fanmucc added the bug Something isn't working label Oct 28, 2024
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

2 participants
@fanmucc and others