Skip to content

Vite 5 Pre-transform error - symlink directory behaviour  #1223

@melaich

Description

@melaich

When attempting to run a React.js + Vite app using pnpm, I encounter the following error in the browser console:
Uncaught SyntaxError: missing ) after argument list (at main.tsx:6:51)

Simultaneously, in the server console, the following message appears:
[vite] Pre-transform error: Failed to load url /src/main.tsx (resolved id: C:/Users/myproject/src/main.tsx). Does the file exist?

System Information:
OS: Windows 10
The project directory root from which I run the app is a symlink to another directory.

Question:
Is this behavior a regression in Vite 5 related to handling symlink paths, or could I be overlooking something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions