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
Module not found: Can't resolve 'request' in '/vercel/path0/node_modules/.pnpm/google-gax@4.2.1_encoding@0.1.13/node_modules/google-gax/build/src #4987
Comments
I'm getting the error also after setting node-linker=hoisted in my .npmrc file |
I just tried to use turborepo with yarn with this config: yarnrc.yml
Same error. |
I hit this today, I'm using
stack:
|
For @google-cloud/tasks it's more complicated, it just continues with more modules missing after installing request |
I am running into the same issue |
I'm also running into this problem with the google tasks library for node
I do not get this error if i downgrade to version 5.0.0. but anythging beyond this version triggers the error. I'm using NextJS 14 |
I am also getting this issue while trying to use Document AI:
|
@sofisl Hi! Hope you're well. Is there an ETA for when we might see a fix here? Many thanks in advance 🙏 |
Has anyone tried just installing request? E.g. "pnpm add request"? It worked for me, although request is a long deprecated module. |
Yepp, the missing modules stack continues... at least for @google-cloud/tasks but I guess for some of the libs that might be a sufficient fix. |
Sorry for the delay, I will take a look next week. |
Ok after looking into this, there are two separate issues happening:
|
I'm getting this error during build time using @google-cloud/tasks in a turborepo(monorepo).
It seems to be directly related to pnpm, I'm using @google-cloud/tasks in another Vercel project which uses yarn, and the error is not triggered during build in this case.
Is pnpm supported?
Environment details
System:
OS: macOS 12.7.2
CPU: (6) x64 Intel(R) Core(TM) i5-8500B CPU @ 3.00GHz
Memory: 1.29 GB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.18.2 - ~/.asdf/installs/nodejs/lts/bin/node
npm: 9.8.1 - ~/.asdf/plugins/nodejs/shims/npm
pnpm: 8.11.0 - ~/.asdf/installs/nodejs/lts/bin/pnpm
Browsers:
Chrome: 120.0.6099.234
Safari: 17.2.1
npmPackages:
@google-cloud/tasks: ^4.0.1 => 4.0.1
Steps to reproduce
Please include any and all code and/or steps related to reproducing the bug.
Making sure to follow these steps will guarantee the quickest resolution possible.
Thanks!
The text was updated successfully, but these errors were encountered: