Error while running yarn start
# support
y
https://github.com/VapiAI/quickstart-react Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:69:19) at Object.createHash (node:crypto:133:10) at module.exports (D:\Projects\Techsapphire\Techsapphire\quickstart-react\node_modules\webpack\lib\util\createHash.js:90:53) ............. Error: error:0308010C:digital envelope routines::unsupported at new Hash (node:internal/crypto/hash:69:19) at Object.createHash (node:crypto:133:10) at module.exports (D:\Projects\Techsapphire\Techsapphire\quickstart-react\node_modules\webpack\lib\util\createHash.js:90:53) at NormalModule._initBuildHash (D:\Projects\Techsapphire\Techsapphire\quickstart-react\node_modules\webpack\lib\NormalModule.js:401:16) at D:\Projects\Techsapphire\Techsapphire\quickstart-react\node_modules\webpack\lib\NormalModule.js:433:10 at D:\Projects\Techsapphire\Techsapphire\quickstart-react\node_modules\webpack\lib\NormalModule.js:308:13 at D:\Projects\Techsapphire\Techsapphire\quickstart-react\node_modules\loader-runner\lib\LoaderRunner.js:367:11 at D:\Projects\Techsapphire\Techsapphire\quickstart-react\node_modules\loader-runner\lib\LoaderRunner.js:233:18 at context.callback (D:\Projects\Techsapphire\Techsapphire\quickstart-react\node_modules\loader-runner\lib\LoaderRunner.js:111:13) at D:\Projects\Techsapphire\Techsapphire\quickstart-react\node_modules\babel-loader\lib\index.js:51:103 { opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reason: 'unsupported', code: 'ERR_OSSL_EVP_UNSUPPORTED' } Node.js v18.17.1 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. #1211483291191083018
v
Hi @yogiyoga, I'm an AI assistant for Vapi. I'll analyze available sources and get back to you shortly.
----------------------------- **While I generate an answer, here are some sources that might be helpful**: * [Create Phone Call]() * [Vapi iOS SDK]() * [List Calls]() * [Vapi Web SDK]() -----------------------------
### Answer The error you're encountering,
ERR_OSSL_EVP_UNSUPPORTED
, is related to the OpenSSL version compatibility with Node.js v17 and later. This issue arises because newer versions of Node.js use OpenSSL 3, which doesn't support some older encryption methods by default. To resolve this error, you can start your Node.js application with an environment variable that allows the use of legacy provider in OpenSSL 3. You can set this environment variable
NODE_OPTIONS
to
--openssl-legacy-provider
before starting your application. Here is how you can set the environment variable depending on your operating system: ### For Windows:
Copy code
bash
set NODE_OPTIONS=--openssl-legacy-provider
yarn start
### For macOS/Linux:
Copy code
bash
export NODE_OPTIONS=--openssl-legacy-provider
yarn start
This setting tells Node.js to allow the use of the legacy methods in OpenSSL that your project or its dependencies may still rely on. Please try this and see if it resolves the issue. If the problem persists, you might need to check for updates in your dependencies or your Node.js version.
y
not working
v
Got it. Tagging @User for additional help.
y
my node version Node.js v18.17.1
s
did you try npm install?
y
yes
s
Can you please ask this question on Vapi Office Hour?
y
kindly share your time zone
y
Do you provide commercial support?
I am able to run using " Id CommandLine -- ----------- 1 nvm 2 cls 3 nvm install 14.15.1 4 nvm use 14.15.1 5 node -v 6 nvm use 14.15.1 7 node -v 8 yarn install 9 yarn start"
getting Failed to compile. ./src/App.jsx Line 71:5: 'React' must be in scope when using JSX react/react-in-jsx-scope Line 81:9: 'React' must be in scope when using JSX react/react-in-jsx-scope Line 87:9: 'React' must be in scope when using JSX react/react-in-jsx-scope Line 94:38: 'React' must be in scope when using JSX react/react-in-jsx-scope Line 95:7: 'React' must be in scope when using JSX react/react-in-jsx-scope Line 179:5: 'React' must be in scope when using JSX react/react-in-jsx-scope Line 198:5: 'React' must be in scope when using JSX react/react-in-jsx-scope Search for the keywords to learn more about each error.
do you have a project where I can put phone number and view what agent is interacting. Like you have when we do sample call from dashboard?
s
Nope.
Can you provide me the code in a repository so that I can reproduce the issue?
y
I am able to run by switching node version to 16. I have a question, I have budget of 2000$, can you help me creating an small app which just has dialer, and during call whatever conversation is happening can be previewed during the call.
s
Check DM I referred you to a community member who can help you out with it.
y
Kindly check my DM
4 Views