Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught Error: Cannot find module "net", "fs", "tls" #337

Closed
zachary opened this issue Aug 3, 2016 · 7 comments
Closed

Uncaught Error: Cannot find module "net", "fs", "tls" #337

zachary opened this issue Aug 3, 2016 · 7 comments

Comments

@zachary
Copy link

zachary commented Aug 3, 2016

Uncaught Error: Cannot find module "net", "fs", "tls" when i require 'mysql'

@pluma
Copy link

pluma commented Aug 3, 2016

This sounds like you're trying to require a module meant to be used only on the server in your client code.

Are you trying to access MySQL from your browser code?

@gaearon
Copy link
Contributor

gaearon commented Aug 3, 2016

This is a client side app setup.
It is compiled for the browser, not for Node apps.

@gaearon gaearon closed this as completed Aug 3, 2016
@ghost
Copy link

ghost commented Jul 1, 2017

How to fix this?

@gaearon
Copy link
Contributor

gaearon commented Jul 1, 2017

It should already work. If it doesn't file a new bug report. Cheers!

@naliga24
Copy link

it still not work for me.

@bugzpodder
Copy link

@naliga24 you should not require mysql in create-react-app because it is for client side.

@naliga24
Copy link

naliga24 commented Jul 6, 2018 via email

@lock lock bot locked and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants