Closed elenitaex5 closed 1 year ago
Problem is caused by util library dependency. It crushes with WEBPACK 5
I've found the real solution. Real solution is here https://github.com/browserify/node-util/issues/57#issuecomment-764436352
And no file has to be changed except webpack.config.js
once
Hi, I'm experimenting this issue in my React project. There's something similar in ANGULAR and an issue related with that. But their solution doesn't work in React.
My
package.json
has this package versionsand my envs are wellformed. In my
webpack.config.json
dotenv is right initialized. Includingconsole.log('env', process.env)
with my env vars insidewebpack.config.json
my env vars are filled and custom env right setted. Console are showing a list of env vars, but this code insidenode_modules/util/utils.js
is breaking my app and is twilio-voice fault:First if is breaking my app. I think the problem is same as people are experimenting in Angular, but I don't know how can we solve it in React.
Code to reproduce the issue:
Only install it in React project having dependencies included above. Starting the server with
npm run serve
and go tolocalhost:8080
is showing the error.Expected behavior:
No errors initializing the app.
Actual behavior:
This error appears initializing the web.
Software versions: