benawad / benawad/fullstack-graphql-airbnb-clone

Heroku: Cannot find module '@babel/runtime/helpers/builtin/interopRequireDefault'

Open
#39 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.7k
Forks
444
PR merge metrics
No merged PRs in 30d

Description

After deployment to Heroku I get the following error from the logs:
```
2020-08-30T00:12:15.679723+00:00 app[abb.1]: (node:3) UnhandledPromiseRejectionWarning: Error: Cannot find module '@babel/runtime/helpers/builtin/interopRequireDefault'

2020-08-30T00:12:15.679796+00:00 app[abb.1]: Require stack:

2020-08-30T00:12:15.679804+00:00 app[abb.1]: - /AirbnbBClone-Jeremy/packages/common/node_modules/yup/lib/index.js

2020-08-30T00:12:15.679810+00:00 app[abb.1]: - /AirbnbBClone-Jeremy/packages/common/dist/yupSchemas/user.js

2020-08-30T00:12:15.679811+00:00 app[abb.1]: - /AirbnbBClone-Jeremy/packages/common/dist/index.js

2020-08-30T00:12:15.679815+00:00 app[abb.1]: - /AirbnbBClone-Jeremy/packages/server/dist/modules/user/forgotPassword/resolvers.js

2020-08-30T00:12:15.679815+00:00 app[abb.1]: - /AirbnbBClone-Jeremy/packages/server/dist/utils/genSchema.js

2020-08-30T00:12:15.679815+00:00 app[abb.1]: - /AirbnbBClone-Jeremy/packages/server/dist/startServer.js

2020-08-30T00:12:15.679816+00:00 app[abb.1]: - /AirbnbBClone-Jeremy/packages/server/dist/index.js

2020-08-30T00:12:15.679816+00:00 app[abb.1]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1080:15)

2020-08-30T00:12:15.679816+00:00 app[abb.1]: at Function.Module._load (internal/modules/cjs/loader.js:923:27)

2020-08-30T00:12:15.679817+00:00 app[abb.1]: at Module.require (internal/modules/cjs/loader.js:1140:19)

2020-08-30T00:12:15.679817+00:00 app[abb.1]: at require (internal/modules/cjs/helpers.js:75:18)

2020-08-30T00:12:15.679821+00:00 app[abb.1]: at Object. (/AirbnbBClone-Jeremy/packages/common/node_modules/yup/lib/index.js:3:30)

2020-08-30T00:12:15.679821+00:00 app[abb.1]: at Module._compile (internal/modules/cjs/loader.js:1251:30)

2020-08-30T00:12:15.679822+00:00 app[abb.1]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1272:10)

2020-08-30T00:12:15.679822+00:00 app[abb.1]: at Module.load (internal/modules/cjs/loader.js:1100:32)

2020-08-30T00:12:15.679822+00:00 app[abb.1]: at Function.Module._load (internal/modules/cjs/loader.js:962:14)

2020-08-30T00:12:15.679822+00:00 app[abb.1]: at Module.require (internal/modules/cjs/loader.js:1140:19)

2020-08-30T00:12:15.679823+00:00 app[abb.1]: at require (internal/modules/cjs/helpers.js:75:18)

2020-08-30T00:12:15.679823+00:00 app[abb.1]: at Object. (/AirbnbBClone-Jeremy/packages/common/dist/yupSchemas/user.js:3:13)

2020-08-30T00:12:15.679823+00:00 app[abb.1]: at Module._compile (internal/modules/cjs/loader.js:1251:30)

2020-08-30T00:12:15.679823+00:00 app[abb.1]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1272:10)

2020-08-30T00:12:15.679824+00:00 app[abb.1]: at Module.load (internal/modules/cjs/loader.js:1100:32)

2020-08-30T00:12:15.679824+00:00 app[abb.1]: at Function.Module._load (internal/modules/cjs/loader.js:962:14)

2020-08-30T00:12:15.679824+00:00 app[abb.1]: (Use `node --trace-warnings ...` to show where the warning was created)

2020-08-30T00:12:15.680346+00:00 app[abb.1]: (node:3) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

2020-08-30T00:12:15.680403+00:00 app[abb.1]: (node:3) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
```
Apparently this can be solved by downgrading `@babel/runtime` but I can't find it in any project's `package.json`? Sorry for any inconvenience

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Heroku log and the require stack, beginning at packages/common/node_modules/yup/lib/index.js and following the imports through packages/common/dist/yupSchemas/user.js and packages/server/dist/startServer.js. Inspect the project's package manifests and deployment setup; done means the deployed server starts without the missing @babel/runtime module or unhandled rejection.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
backend, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.