You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the napi ui command in a project, the /api/scan endpoint fails with an Invalid file path error on Windows. The issue occurs because the entrypoint path from the .napirc configuration file is passed as a Windows-style path (e.g., C:\\Users\\emmanuel\\...) to the endpoint.
This bug prevents the napi ui visualizer from scanning the entry point and displaying the codebase structure, making the feature unusable on Windows.
Expected Behavior
The /api/scan endpoint should correctly process the entrypoint path, regardless of whether it’s in Windows-style or Unix-style format, and return a valid response.
Actual Behavior
The /api/scan endpoint fails with the following response:
Normalize file paths to handle both Windows-style (C:\...) and Unix-style (/...) paths.
Use a library like path from Node.js to ensure consistent path handling.
Steps to Reproduce
On a Windows environment create a .napirc file with the following configuration:
Check the /api/scan endpoint and see the Invalid file path error.
Context
This bug blocks the ability to use then napi ui command on Windows. It affects Windows developers trying to scan their entrypoint and view their codebase in the visualizer.
Description
When running the
napi ui
command in a project, the/api/scan
endpoint fails with anInvalid file path
error on Windows. The issue occurs because theentrypoint
path from the.napirc
configuration file is passed as a Windows-style path (e.g.,C:\\Users\\emmanuel\\...
) to the endpoint.This bug prevents the napi ui visualizer from scanning the entry point and displaying the codebase structure, making the feature unusable on Windows.
Expected Behavior
The
/api/scan
endpoint should correctly process theentrypoint
path, regardless of whether it’s in Windows-style or Unix-style format, and return a valid response.Actual Behavior
The
/api/scan
endpoint fails with the following response:Possible Fix
Normalize file paths to handle both Windows-style (C:\...) and Unix-style (/...) paths.
Use a library like path from Node.js to ensure consistent path handling.
Steps to Reproduce
Context
This bug blocks the ability to use then
napi ui
command on Windows. It affects Windows developers trying to scan their entrypoint and view their codebase in the visualizer.Your Environment
Config File
Paste your
.napirc
belowThe text was updated successfully, but these errors were encountered: