I installed mysql package on my react native project but I get an error like this.
The crypto package should not exist according to the error.
But it's in node_modules.
error: bundling failed: Error: Unable to resolve module crypto from node_modules/mysql/lib/Connection.js: crypto could not be found within the project.
Hi I'm Sory bad englih.
I installed mysql package on my react native project but I get an error like this.
The crypto package should not exist according to the error.
But it's in node_modules.
error: bundling failed: Error: Unable to resolve module
crypto
fromnode_modules/mysql/lib/Connection.js
: crypto could not be found within the project.Have you solved it ?
Hello, that's pretty weird. Have you tried running
npm install crypto
?Sorry I took long to answer, this article is pretty outdated and I've been quite busy haha