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

Can't use node:path.sep in browser #1

Open
Zehir opened this issue Jul 15, 2023 · 0 comments
Open

Can't use node:path.sep in browser #1

Zehir opened this issue Jul 15, 2023 · 0 comments

Comments

@Zehir
Copy link

Zehir commented Jul 15, 2023

Hello, I just found this lib and it's exactly what I needed but I cant use it directly because it's use the directory seperator from node and I would like to use it in a browser using Vite.

Is it's possible to remove the dependency of nodejs ?

Also it's may be possible that the path you parsing is not using the OS separator

I get this error message ;
Module "node:path" has been externalized for browser compatibility. Cannot access "node:path.sep" in client code. See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.

Thanks

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