Skip to content

Issue with configuration: server starts in wrong location #38

@ManfredLange

Description

@ManfredLange

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions