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

Issue with configuration: server starts in wrong location #38

Open
ManfredLange opened this issue Oct 27, 2023 · 1 comment
Open

Issue with configuration: server starts in wrong location #38

ManfredLange opened this issue Oct 27, 2023 · 1 comment

Comments

@ManfredLange
Copy link

My repository root is at location /work

The app using Vite is at /work/app

I tried setting the base path for opening the app (Base path for open the app) to /work/app but that didn't work as it still thinks that it should start in /work instead of /work/app

I tried changing the setting "Vite: Dev Command" to cd /work/app && npm run dev. It now does something but now it shows the following error:

[vite] Internal server error: Failed to resolve entry for package "/work/app". The package may have incorrect main/module/exports specified in its package.json.

However, running npm run dev in directory /work/app works just fine.

Note that the VS Code workspace is the root of the local clone. That directory is /work.

I've run out of ideas what else to try. Any and all suggestions would be very much appreciated!

@jacksonthall22
Copy link

Ever find a solution to this? I'm getting something similar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants