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] Cannot resolve npm package on macOS #3973

Open
brillout opened this issue Nov 12, 2024 · 2 comments
Open

[Bug] Cannot resolve npm package on macOS #3973

brillout opened this issue Nov 12, 2024 · 2 comments

Comments

@brillout
Copy link

brillout commented Nov 12, 2024

Esbuild seems to fail to resolve vike-react/config for some macOS users. The weird thing is that it seems to only happen on macOS and only for some users. Also note that Node.js can resolve vike-react/config just fine even for these macOS users, so it seems to be an esbuild bug.

Note that vike-react/config resolves to the file ./dist/+config.js which contains a + character. Maybe it has something to do with that + character. (I cannot test because I don't have a macOS machine.)

This is fairly critical because it makes Vike unusable. (Although, as a workaround, Vike now falls back to using Node.js if esbuild fails to resolve, but I ain't sure how reliable that workaround is.)

Reproduction: https://github.com/brillout/esbuild-bug-macos-resolve
macOS version: 14.3.1 (see vikejs/vike#1729 (comment))
Original Vike issue: vikejs/vike#1729

@hyrious
Copy link

hyrious commented Nov 13, 2024

I'm running macOS 15.1 (current latest) and cannot reproduce the bug.

@brillout
Copy link
Author

I'm running macOS 15.1 (current latest) and cannot reproduce the bug.

Yea, it happens only for some macOS users. Maybe it depends on macOS's version.

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

2 participants