Bạn đang xem: You need to enable javascript to run this app
And I"ve checked by running laravel project, javascript is enabled in browser, also tried different browsers.
Someone please help me khổng lồ overcome this error.


Highest score (default) Trending (recent votes count more) Date modified (newest first) Date created (oldest first)
Help us improve our answers.
Are the answers below sorted in a way that puts the best answer at or near the top?
I received this message when no proxy lớn the hệ thống was specified inside client package.json file.
"proxy": "http://localhost:5000"(where 5000 should be changed khổng lồ whatever port number the server was thiết lập to listen to. In my case it also required hệ thống restart once added)

I had same problem. My workable solution:
package.json:
"homepage": "."index.js:
app.use(express.static(__dirname)); //here is important thing - no static directory, because all static :)app.get("/*", function(req, res) res.sendFile(path.join(__dirname, "index.html")););

I received this error because an API gọi that I was making was being blocked because of an invalid API key.

Try khổng lồ run in other browser & see if it is working.
If it works there then please try below things and refresh your website.
Right click và select Inspect.Go to lớn Application Tab.Clear everything from local storage, session storage & cookies.Refresh your website.Xem thêm: What Is Redirection In Laravel 4: Redirect To A Given Url, Http Responses
This resolved similar issue in my case và hope it will work for others.
Go lớn your SignIn component or Register component, change the form tag khổng lồ a div tag OR prevent the form mặc định i.e (e.preventDefault). Also make sure that Javascript is enabled in your browser.
Just make sure that this route must be appeared after at all other routes
app.get("/*", function (req, res) res.sendFile(path.resolve(__dirname, "../client/build", "index.html"));)
Also a react newbie, I hit this issue. Remembering to địa chỉ ReactDOM.render(, document.getElementById("root")); fixed it for me.
I had the same problem. In my case, the class name wasn"t following the patterns (must starts with uppercase). As soon as I corrected it everything started to lớn work well.
I had some cookies mix in the same url (localhost:8080), probably from a previous development, và it was somehow messing with my React project. I only found out because (out of despair) I tried with another browser and it worked. I deleted the cookies and it worked perfectly.
In your react project thư mục install serve if you haven"t installed it before;
npm install -g serveThen serve your project with a static server;
serve -s buildThe build is a folder generated by "npm run build".
That"s it! Visit
http://localhost:5000
by default.
If you are facing the error "You need to enable JavaScript khổng lồ run this app." in reactjs then 9/10 times there is an issue with your API call. Please cross kiểm tra API url string, parameters, kích hoạt type, endpoints, action names, controller names and API gọi status. You"ll be able to find the issue.verify endpoint url again và again. You"ll definitely find a solutions. Also check ur VPN access if you"re able khổng lồ hit the over point.
Go lớn console --> network tab và see ur API status
Thanks for contributing an answer lớn Stack Overflow!
Please be sure khổng lồ answer the question. Provide details và share your research!But avoid …
Asking for help, clarification, or responding to lớn other answers.Making statements based on opinion; back them up with references or personal experience.To learn more, see our tips on writing great answers.
Post Your Answer Discard
By clicking “Post Your Answer”, you agree khổng lồ our terms of service, privacy policy và cookie policy
Not the answer you're looking for? Browse other questions tagged javascript node.js reactjs or ask your own question.
How to lớn fix "FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory" error
React API calls giving "You need to enable JavaScript khổng lồ run this app." error after deploying ReactJs phầm mềm in Firebase server
Site kiến thiết / hình ảnh sản phẩm © 2022 Stack Exchange Inc; user contributions licensed under cc by-sa. Rev2022.5.3.42026
Your privacy
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device & disclose information in accordance with our Cookie Policy.