Heroku +节点“错误:找不到模块'../config.js'需要堆栈:-/app/util/check-auth.js,-/app/graphql/resolvers/posts.js,-/ app / index。 js

时间:2020-10-29 13:30:50

标签: javascript node.js heroku graphql apollo-server

我的应用程序在本地运行良好,但是在使用Heroku进行部署后,出现应用程序错误。

This are my Heroku logs

This is my project structure:

{
  "name": "merng",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "serve": "node index.js",
    "start": "node index.js"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "apollo-server": "^2.5.0",   
     "bcryptjs": "^2.4.3",
     "graphql": "^15.3.0",
      "jsonwebtoken": "^8.5.1",
    "mongoose": "^5.10.10"
  },
  "devDependencies": {
    "nodemon": "^2.0.6"  
  }
}

0 个答案:

没有答案