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

Invalid parsing on Windows #5

Open
ynshung opened this issue Apr 14, 2022 · 0 comments
Open

Invalid parsing on Windows #5

ynshung opened this issue Apr 14, 2022 · 0 comments

Comments

@ynshung
Copy link

ynshung commented Apr 14, 2022

Parses are invalid and test fails on a Windows device because of the imported sep which return \ when the path returned is /. It seems like the path returned defaulted to / on some time. It will cause error such as numerated json file in a folder (0.json, 1.json...) does not result in an array,

If you are facing this issue change const parts = path.split(sep) from sep to "/". Not sure if it applies to other Windows (10) or Node version (mine is v16.13.2).

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