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

[Bug report] Does not work on Windows with junction in path #1624

Open
andreashe opened this issue Jan 7, 2025 · 0 comments
Open

[Bug report] Does not work on Windows with junction in path #1624

andreashe opened this issue Jan 7, 2025 · 0 comments

Comments

@andreashe
Copy link

Description

On Windows you can create junctions, which is something similar like a symlink. When the project is in a folder which has a junction in the path, it does not work and results with an error like this:

Rendering 3 pagesTypeError: Cannot read properties of undefined (reading 'routeLocale')

Not sure in which module this issue comes up. But I guess it must be something which tries to read a file or calculate a path to a file. For sure it happens not often as very less users may use junctions.

Reproduction

https://stackblitz.com/edit/vuepress-sotfmabk

Used Package Manager

npm

System Info

I tested it with this simple project: https://stackblitz.com/edit/vuepress-sotfmabk

Create a windows junction:


mklink /J <Link> <Target>

on Windows 10

Then enter the project (which must be reached through the junction) and do

npm run build

Side node: with npm run dev it works.

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

1 participant