You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yarn start
yarn run v1.22.18
$ probot run
/Users/../code/../node_modules/resolve/lib/sync.js:75
throw new TypeError('Path must be a string.');
^
TypeError: Path must be a string.
at resolveSync (/Users/../code/../node_modules/resolve/lib/sync.js:75:15)
at Object.resolveAppFunction (/Users/../code/../node_modules/probot/lib/helpers/resolve-app-function.js:30:23)
at combinedApps (/Users/../code/../node_modules/probot/lib/run.js:101:56)
at async Server.load (/Users/../code/../node_modules/probot/lib/server/server.js:52:9)
Expected behavior/code
Expect the app to start and work as expected.
Creating an empty index.js and running yarn start ./index.js works fine.
Environment
Probot version(s): 12.2.0
Node/npm version: v16/yarn v1
Possible Solution
Guard the below line with existance check of appPath
Bug Report
To reproduce:
https://probot.github.io/docs/deployment/#combining-apps
yarn start
Current Behavior
Error:
Expected behavior/code
Expect the app to start and work as expected.
Creating an empty
index.js
and runningyarn start ./index.js
works fine.Environment
Possible Solution
Guard the below line with existance check of
appPath
probot/src/run.ts
Line 136 in 420f886
or update docs to require inclusion of index.js
Happy to send PR if consensus on problem & my proposed solution. Thanks!
The text was updated successfully, but these errors were encountered: