-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[now] nestjs error: cannot find module @nodelib/fs.stat
#3115
Comments
Hi @cheel1337 The Please use |
Hi @styfle Now i get this:
I only change |
You can remove ts-node since ZEIT Now will already work with typescript. Your error message makes me think you're missing Try using the typescript file as the entry point: {
"name": "example",
"builds": [
{ "src": "index.ts", "use": "@now/node" }
],
"routes": [
{ "src": "/.*", "/index.ts" }
]
} |
I have
And this:
|
Does it build with What is the contents of |
Ok, i fixed it. Now it doesn't show any errors. But..
And in runtime logs it spams:
now.json:
Deploying with: |
I see. The If you can replace that dependency with a different glob implementation, it should work. |
This dependency is used in |
I am also trying to deploy a NestJS server using {
"version": 2,
"name": "stuffs",
"builds": [
{
"src": "dist/apps/backend/main.js",
"use": "@now/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "dist/apps/backend/main.js"
}
]
} Am getting a similar error as @cheel1337:
Just thought I'd add a data point here and perhaps some help in debugging in getting this fixed. |
@nodelib/fs.stat
@styfle When will it be fixed? |
@styfle Can you please comment if there is any progress ? |
Recently i opened issue here and get nothing :( |
@cheel1337 I fixed it on my side: I was using graphql-modules & graphql-toolkit packages together. Unfortunately there was a recent change in how graphql-toolkit is published on npmjs.com So i basically started depending on prefixed packages and it works now ! 'graphql-toolkit' -> '@graphql-toolkit/file-loading' |
@elvenking I do not use any of this. You can see my reproduction repo |
@cheel1337 yarn why v1.19.1
You are using it as a transitive dependency. I am not sure if it helps in your case, but i resolved the same (similar) issue just by redefining dependency on graphql-toolkit. |
@elvenking How did you redefine the Edit: Redefined "resolutions": {
"@nestjs/graphql/merge-graphql-schemas": "1.7.3"
} I'm still getting the same error:
|
I was using 'graphql-toolkit' as an direct dependency of my project. EDIT: |
I'm using graphql-tools for loading and merging .graphql files and I'm getting the same error on zeit now. |
This was fixed in vercel/nft#55 and then #3613. |
I'm trying to deploy nestjs server.
Few days ago it worked fine, but now i get this error:
now.json:
index.js:
any ideas?
The text was updated successfully, but these errors were encountered: