axelspringer / graphql-google-pubsub

A graphql-subscriptions PubSub Engine using Google PubSub
MIT License
136 stars 43 forks source link

Error in build #17

Closed bsbechtel closed 5 years ago

bsbechtel commented 5 years ago

I'm seeing the following error when I try to use with netlify functions and apollo-server:

Error during invocation: Error: package.json does not exist at /package.json

Here are my dependencies:

  "devDependencies": {
    "netlify-lambda": "^1.5.1"
  },
  "dependencies": {
    "@axelspringer/graphql-google-pubsub": "^1.2.1",
    "apollo-server-lambda": "^2.8.1",
    "aws-sdk": "^2.343.0",
    "dotenv": "^6.1.0",
    "graphql": "^14.4.2",
    "mongoose": "^5.4.18",
    "uuid": "^3.2.1"
  }

I think it has something to do with netlify's webpack configuration, but it only started when I installed this package.

jonas-app commented 5 years ago

Thx for reporting this issue.

I have never used Netlify myself, so I'm afraid I ain't much help here.

Open for a contribution which fixes the issue if you find a solution.

bsbechtel commented 5 years ago

Thx....I ended up going another route. Google Pubsub was recommended to me by someone else.