Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with start bridge #24

Closed
raymand211092 opened this issue Jun 21, 2023 · 3 comments · Fixed by #28
Closed

Error with start bridge #24

raymand211092 opened this issue Jun 21, 2023 · 3 comments · Fixed by #28
Milestone

Comments

@raymand211092
Copy link

raymand211092 commented Jun 21, 2023

when execute node scripts/cli.js registerSlashCommands :

node:internal/modules/cjs/loader:1093
  throw err;
  ^

Error: Cannot find module '/root/bolt/scripts/cli.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1090:15)
    at Module._load (node:internal/modules/cjs/loader:934:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v19.9.0
@williamhorning
Copy link
Owner

Hey there @raymand211092, are you running the script while inside the bolt directory?

@raymand211092
Copy link
Author

raymand211092 commented Jun 21, 2023

Yes...i followed the steps:

root@srv112118-206152:~# cd bolt/
root@srv112118-206152:~/bolt# ls
app  changelog.md  docker-compose.yml  docs  legalese.md  LICENSE  node_modules  package.json  package-lock.json  README.md
root@srv112118-206152:~/bolt# node scripts/cli.js registerSlashCommands
node:internal/modules/cjs/loader:1093
  throw err;
  ^

Error: Cannot find module '/root/bolt/scripts/cli.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1090:15)
    at Module._load (node:internal/modules/cjs/loader:934:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
    at node:internal/main/run_main_module:23:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v19.9.0
root@srv112118-206152:~/bolt#

@williamhorning
Copy link
Owner

@raymand211092 I don't think I can repro this locally, could you try to run Bolt using docker-compose and check to see if you still face the issue then?

@williamhorning williamhorning mentioned this issue Jun 29, 2023
@williamhorning williamhorning linked a pull request Jun 29, 2023 that will close this issue
@williamhorning williamhorning added this to the 0.5.0 milestone Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants