question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

You need to enable javascript to run this app react using yarn start

See original GitHub issue

I cloned an existing ReactJS app with version 16.12.0. I installed the app using yarn install and while running the app using yarn start. The app loads NoScript text You need to enable JavaScript to run this app..

How to solve this issue?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
AustinGarrodcommented, Mar 17, 2022

Is javascript enabled in your browser?

If you visit https://www.enable-javascript.com/ do you see Javascript is disabled in your web browser. If you enable JavaScript, this text will change or Javascript is enabled in your web browser. If you disable JavaScript, this text will change.

If you see Javascript is disabled in your web browser. If you enable JavaScript, this text will change, follow the instructions on the same page just below that message to enable javascript, and try your app again.

0reactions
DevelopMancommented, Dec 28, 2022

I had the same error when I used BrowserRouter instead of RouterProvider. This code didn’t work:

const router = createBrowserRouter([{ path: "/", element: <div>Test page</div> }]);
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(  
  <React.StrictMode>    
    <BrowserRouter router={router} />
  </React.StrictMode>
);

this code did work:

const router = createBrowserRouter([{ path: "/", element: <div>Test page</div> }]);
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(  
  <React.StrictMode>    
    <RouterProvider router={router} />
  </React.StrictMode>
);
Read more comments on GitHub >

github_iconTop Results From Across the Web

I am getting error in console "You need to enable JavaScript to ...
I received this message when no proxy to the server was specified inside client package.json file. "proxy": "http://localhost:5000".
Read more >
Solved - You Need to Enable Javascript to Run This App
One common error that React developers are facing is: You need to enable Javascript to run this app. There are 3 possible solutions...
Read more >
You need to enable JavaScript to run this app - WordPress.org
Hi, I just created a react app with npx create-react-app my-app, put a slugname in the reactpress tab, and make a “npm start”....
Read more >
"You need to enable javascript to run this app". basic react ...
This app was created using create-react-app, so I should be able to run 'npm start' and see the app run in the localhost...
Read more >
[Solved] You need to enable JavaScript to run this app in ...
To Solve You need to enable JavaScript to run this app in reactJS Error Just add proxy inside the client package.json file. Here...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found