Home > OS >  Module not found: Error: Can't resolvse 'crypto' in 'D:\formik-mui\node_module
Module not found: Error: Can't resolvse 'crypto' in 'D:\formik-mui\node_module

Time:01-03

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:

  1. The crypto module is not installed in your project. To fix this, you can try running npm install crypto or yarn add crypto, depending on which package manager you are using.
  2. The crypto module is installed, but it is not being correctly resolved by Webpack. In this case, you may need to update your Webpack configuration to include the crypto module 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

  • Related