Giter Club home page Giter Club logo

Comments (7)

wickstargazer avatar wickstargazer commented on June 4, 2024

Can i see your serverless.yml

Also are you trying to deploy by function or the whole thing?

from nx-plugins.

hoang-innomize avatar hoang-innomize commented on June 4, 2024

The serverless.yml is straightforward

service: myapi
frameworkVersion: ">=1.1.0 <2.0.0"
plugins:
  - serverless-offline
package:
  individually: true
  excludeDevDependencies: true
  custom:
    enable_optimize:
      local: false
provider:
  name: aws
  runtime: nodejs12.x
  stage: dev
  region: us-east-1
  profile: recom_dev

functions:
  hello-world:
    handler: src/hello-world/hello-world.handler
    events:
      - http:
          path: hello-world
          method: get


The workspace.json also default

Failed when checking peer dependencies causing missing packages when running on Lambda. So much appreciated if we can fix this issue quickly

from nx-plugins.

hoang-innomize avatar hoang-innomize commented on June 4, 2024

@wickstargazer today I also found a mistake of the normalize util at

const peerModules = this.getProdModules.call(

I can submit a PR that fixes both issues. Can I have write access to this repo?

from nx-plugins.

wickstargazer avatar wickstargazer commented on June 4, 2024

Hi! Would you mind forking it and submitting a PR?

Also would you kind elaborating the mistake in normalize?

from nx-plugins.

hoang-innomize avatar hoang-innomize commented on June 4, 2024

I have submitted a PR to fix two issues, let me know if I need to provide more details

from nx-plugins.

hoang-innomize avatar hoang-innomize commented on June 4, 2024

There are two issues on the normalize util

  1. The packagePath is a full path, so we can use dirname to get workspace root path
  2. Missing the packageJson when calling the getProdModules function

from nx-plugins.

wickstargazer avatar wickstargazer commented on June 4, 2024

Hi!, I have published 0.5.1 please see if it works :)

from nx-plugins.

Related Issues (20)

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.