-
Notifications
You must be signed in to change notification settings - Fork 0
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
Could not resolve node_modules/@esbuild-plugins/node-globals-polyfill/_virtual-process-polyfill_.js" #1
Comments
hey @inc16sec I'll have a look. update: I'm able to reproduce. I'm guessing it's a dependency issue with a later version of esbuild. |
Hey @dnalborczyk. After doing some digging, I found that the issue is from my end. You see I'm using Apollo/server and Neo4j-driver.. Neo4j-driver relies on some node scripts to run and it seems that it is what leads to the error. |
ah, ok, no problem 👍 if you are still interested: it was not any of your fault. in order to get it to work you have to pin |
I do have
|
just digged a bit: https://github.com/evanw/esbuild/releases/tag/v0.16.8 , fairly sure this there has been multiple issues filed fir this in the global polyfill repo: https://github.com/remorses/esbuild-plugins/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc the problem is that those plugin repos are pretty much unmaintained right now. 😞 you could try: npm i [email protected]
rm -rf node_modules
npm ci |
After running
I was able to run the build command successfully and it indeed built the project but when running Here's the error.
|
Hey @dnalborczyk I was trying to use your package to deploy my Apollo server V4 into Cloudflare Workers (looks like this is the only way so far).. And as I tried to build the project by running
rimraf build && NODE_ENV=production node worker.build.js
it threw an error;[ERROR] Could not resolve "/../../..../../apollo_server_worker/node_modules/@esbuild-plugins/node-globals-polyfill/_virtual-process-polyfill_.js"
I'm not sure what is the issue here.
here's my
package.json
I also have added the files in this exapmle project, inclduing.
When I try to run
wrangler dev --experimental-local
without building it throws"The entry-point file at "dist/index.js" was not found."
And when I run the build command it throws the error mentioned above.Is there something I'm missing here? Are there some more steps that I've skipped?
Also. The project need to be built first before running it. right ?
Thank you for your work and I hope to hear from you soon.
Best regards.
The text was updated successfully, but these errors were encountered: