I use yub with formik and typescript in react when i try use yub this error ocure can you solve this error
CodePudding user response:
It looks like you are trying to use a module called yub in your project, but it is giving you an error that it cannot find the crypto module.
This error is usually caused by one of two things:
- The
cryptomodule is not installed in your project. To fix this, you can try runningnpm install cryptooryarn add crypto, depending on which package manager you are using. - The
cryptomodule is installed, but it is not being correctly resolved by Webpack. In this case, you may need to update your Webpack configuration to include thecryptomodule as an alias.
CodePudding user response:
Try https://www.npmjs.com/package/react-app-rewired, i had the same problem when my memory is correct after a upde of my project
