trilonio / zeit-now-nestjs Goto Github PK
View Code? Open in Web Editor NEWDeploy NestJS to Zeit Now
Home Page: https://trilon.io
Deploy NestJS to Zeit Now
Home Page: https://trilon.io
I'm using current repository.
When i'm trying to deploy the console is throwing this error "Cannot find module '@nodelib/fs.stat"
I'm not actually using this module on my app.
Is this NestJS issues ? Or zeit issues? @MarkPieszak
RequestId: ce806505-846c-401c-ad4f-0b0a069c9f60 Error: Runtime exited with error: exit status 1 Runtime.ExitError
--
Sep 18 2019 19:25:31:162 | 2019-09-18T10:25:31.076Z undefined ERROR Cannot find module '@nodelib/fs.stat' 2019-09-18T10:25:31.078Z undefined ERROR Did you forget to add it to "dependencies" in `package.json`? Duration: 991.27 ms Billed Duration: 1000 ms Memory Size: 3008 MB Max Memory Used: 102 MB RequestId: fc3181f5-b9b5-4378-9dfe-027725d0fab0 Error: Runtime exited with error: exit status 1 Runtime.ExitError
Sep 18 2019 19:25:33:249 | 2019-09-18T10:25:33.146Z undefined ERROR Cannot find module '@nodelib/fs.stat'
Hi,
I jut clone and run now on your project but I get an error :
? Set up and deploy “~/GitHome/zeit-now-nestjs”? [Y/n] y
? Which scope do you want to deploy to? Jordi Dosne
? Link to existing project? [y/N] n
? What’s your project’s name? nestjs-now
? In which directory is your code located? zeit-now-nestjs/
❗️ The `name` property in now.json is deprecated (https://zeit.ink/5F)
Error! You defined 1 build that did not match any source files (please ensure they are NOT defined in .nowignore):
- {"src":"dist/main.js","use":"@now/node"}
I don't understand why.
I have two routes:
@Get()
async ping(): Promise<string> {
}
@Post('payment)
async payment(@Body() data: any, @Req() request: Request): Promise<void> {
}
For some reason when I post to payment
route I've got an 404 error:
{
"statusCode": 404,
"message": "Cannot GET /payment",
"error": "Not Found"
}
However the default get ping()
route works fine.
I did upload my app following this article https://trilon.io/blog/deploying-nestjs-to-zeit-now
Here my now.json
{
"version": 2,
"name": "api-test2",
"builds": [
{
"src": "main.js",
"use": "@now/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "main.js"
}
]
}
The title says it all...
The URL https://nestjs-zeit.now.sh is showing DEPLOYMENT_NOT_FOUND
error :(
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.