Hi Gents.
I am using websnark in my React project and everything works fine.
But the built ( by using 'npm run build') version occurs error like "Uncaught ReferenceError: _asyncToGenerator is not defined"
How to reproduce it?
create new react app by using npx creact-react app websnark-test
Hi Gents. I am using websnark in my React project and everything works fine. But the built ( by using 'npm run build') version occurs error like "Uncaught ReferenceError: _asyncToGenerator is not defined"
How to reproduce it?
create new react app by using npx creact-react app websnark-test
add this line to package.json "websnark": "git+https://github.com/peppersec/websnark.git#c254b5962287b788081be1047fa0041c2885b39f", And try npm i
navigate node_modules/react-scripts/config/webpack.config.js and set new webpack.IgnorePlugin(/worker_threads/) for ignore plugin
run
npm run build
and host the build folderThen you will see such error on console
Thanks