Closed thedarkknight197 closed 2 years ago
@luu-alex thank you but my issue was resolved by setting
"scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" },
to this
"scripts": { "start": "SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts start", "build": "SET NODE_OPTIONS=--openssl-legacy-provider && react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" },
Is there an existing issue for this?
Current Behavior
I have an issue with web3 with latest version of react. It can't be imported in code.
The message is:
Expected Behavior
I am expected that the import with
import Web3 from 'web3';
still work
Steps to Reproduce
1) Create a new React Project: npx create-react-app newsite 2) enter in project: cd newSite 3) Install web3: npm i web3 4) Import web3 in App.js: import Web3 from 'web3';
Web3.js Version
1.6.0
Environment
Anything Else?
No response