bolt-js icon indicating copy to clipboard operation
bolt-js copied to clipboard

Error with node version

Open Billiardist94 opened this issue 2 years ago • 1 comments

Description

Hi! I'm trying to use @slack/bolt api with React.js but I receive this error: index.js:11 @slack/bolt requires at least version 12.13.0 of Node, please upgrade

What type of issue is this? (place an x in one of the [ ])

  • [ ] bug
  • [ ] enhancement (feature request)
  • [x] question
  • [ ] documentation related
  • [ ] example code related
  • [ ] testing related
  • [ ] discussion

Requirements (place an x in each of the [ ])

  • [x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • [x] I've read and agree to the Code of Conduct.
  • [x] I've searched for any related issues and avoided creating a duplicate issue.

Bug Report

I’m using node v12.13.0 but after running the project I’ve an error: image image This is my project: package.json image import in component: image

Reproducible in:

package version: 3.12.1

node version: 12.13.0

OS version(s): Windows 10 Home, 21H1, 27.‎12.‎2021, 19043.1889

Steps to reproduce:

  1. npm install @slack/bolt
  2. add in js file` const { App } = require('@slack/bolt');

const app = new App({ token: ****, signingSecret: **** });

(async () => { // Start your app await app.start(process.env.PORT || 3000);

console.log('⚡️ Bolt app is running!'); })();` 3. npm start

Expected result:

successful settings in my project

Actual result:

Error in console: index.js:11 @slack/bolt requires at least version 12.13.0 of Node, please upgrade

Attachments:

Screenshot_348

Billiardist94 avatar Sep 12 '22 09:09 Billiardist94

Hey @Billiardist94 👋🏻 Thanks for the details in your question and all of the screenshots 🙇🏻 It's super helpful!

I haven't experienced your issue before, but I believe I've found a similar issue between React.js and Node in the browser.

It sounds like you're trying to include Bolt.js in a React.js app that's running in the web browser? Since the execution is happening inside the browser, there is no Node.js process. You would need to implement Bolt.js as a separate Node.js process that's run as a web server/API that your React.js app can make requests between.

Please let me know if that helps and if you find a solution can you please share details for any other React.js developers using Bolt.js? Thanks!

mwbrooks avatar Sep 12 '22 17:09 mwbrooks

👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized.

github-actions[bot] avatar Oct 17 '22 00:10 github-actions[bot]

As this issue has been inactive for more than one month, we will be closing it. Thank you to all the participants! If you would like to raise a related issue, please create a new issue which includes your specific details and references this issue number.

github-actions[bot] avatar Oct 31 '22 00:10 github-actions[bot]