Topic: React npm/yarn start
Wasserman pro asked 6 years ago
Jakub Strebeyko staff answered 6 years ago
node: 8.9.0
yarn: 1.7.0
npm: 5.6.0
What versions are you using? I will try to recreate the issue.
With Best Regards,
Kuba
Wasserman pro commented 6 years ago
Everything seems to be find I run it on Ubuntu 16 on AWS EC2 instance, and I am using Nginx, when I run yarn start its showing compiled successfully and that project is running on localhost:8080 but i cant access it, if I run any other react app on this port everything seems to be find.. Do I have to do any additional configurations?Jakub Strebeyko staff commented 6 years ago
Hi there, There is no special configuration required, MDB React works out of the box. The terminal log seems to be throwing errors, and yet you say it gets compiled successfully β could you clarify? Thestart script
in package.json should set up all you need for serving it from local host, way before Nginx or AWS, and it should probably be altered if it gets served some other way. Some other idea that came to head is the node-sass
module, as there were issues with in the past. If you have doubts about its performance, consider running node-sass rebuild --force
and seeing whether that helped. Let me know, in case of any additional info, too.
With Best Regards,
Kuba
Wasserman pro commented 6 years ago
Well obviously it's not.. because it didn't work for me and I had to research it for 3 days the worker file, didn't find the window.location, and in order for it to work I needed to add to the file webpack.dev.config.js in devServer :{ historyApiFallback: true, allowedHosts: [ 'my_host.com', 'www.my_host.com' ] } It would be nice to get a note about it.Jakub Strebeyko staff commented 6 years ago
Hi, Thanks for reaching out! I am sure someone will find the issue and the solution you provided here useful. Cheers! Best, KubaFREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Pro
- Premium support: No
- Technology: MDB React
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No