Giter VIP home page Giter VIP logo

zeit-now-nestjs's Issues

Error during deploy

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.

Routing issue 404 error not found

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

image

Here my now.json

{
  "version": 2,
  "name": "api-test2",
  "builds": [
    {
      "src": "main.js",
      "use": "@now/node"
    }
  ],
  "routes": [
    {
      "src": "/(.*)",
      "dest": "main.js"
    }
  ]
}

Cannot find module '@nodelib/fs.stat'

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.