-
Notifications
You must be signed in to change notification settings - Fork 142
Fix spawn npm ENOENT #96
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
Conversation
🦋 Changeset detectedLatest commit: 4221e73 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
If you don't mind me asking, I'm curious as to what error esbuild gives you for the The |
The error esbuild gives me is here
though I found that your changes also solved this problem as you make it normalize the path before it was put into the functionsMap after I test it |
I thought that would be the case. Seems like the other normalizePaths you did might not be needed then. |
yeah, I just removed the changes I made with the path |
🧪 A prerelease is available for testing 🧪 You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/next-on-pages/runs/4438929823/npm-package-next-on-pages-96 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/next-on-pages/prs/96/npm-package-next-on-pages-96 |
Thanks a lot @james-elicx for the assistance in reviewing the PR! (it's ultra appreciated especially since we're currently not really well equipped to test the package on windows) And thanks a lot @LOLBRUHNICE of course! 🙂 |
This pr was created to solve:
1. The problem that esbuild can't recognize windows back-slash\
during the build and cause errorspawn()
withnpx
as it will cause the errorspawn npm ENOENT