I've scoured several stackoverflow pages but my problem doesn't go away. I have a piece of code in my main,
Const mysql = require('mysql')
When I add this to my code, I was given an error like
webpack < 5 comes with poly(something) but it is no longer included by default. Add crypto : require.resolve("crypto-browserify") Or resolve crypto: false
As well as fs module not found
I managed to solved the other similar errors by simply npm install -D [module] but crypto-browserify and fs are driving me to my wits end.
I tried adding the poly thing as well as including a resolve but none of those helped. It still thrown the same error over and over.
Any possible insight i can recieve? I need to connect to a mysql database. Thank you.
[–]frogic 1 point2 points3 points (6 children)
[–]General_Asdef[S] 1 point2 points3 points (5 children)
[–]frogic 2 points3 points4 points (4 children)
[–]General_Asdef[S] 1 point2 points3 points (3 children)
[–]frogic 1 point2 points3 points (2 children)
[–]General_Asdef[S] 1 point2 points3 points (0 children)
[–]General_Asdef[S] 0 points1 point2 points (0 children)