Why react app shows alert in chrome to confirm reloading?

27 Views Asked by At

I have a react app created with create-react-app.

In package.json dependencies I have:

...
"react": "18.2.0",
"react-app-rewired": "2.2.1",
"react-scripts": "5.0.1",
...

in scripts I have:

"scripts": {
    "start": "npm run watch:css & react-app-rewired start",
    ...

In config-overrides.js file I have next:

const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');

module.exports = function override(config, env) {
  config.plugins.push(
    new MonacoWebpackPlugin({
      languages: ['json', 'html']
    })
  );

  return config;
};

The problem is, whenever I change something in the code hot reloading is triggered, but in browser (chrome) it show me an alert to confirm that I want to reload the page.

enter image description here

Any idea why?

0

There are 0 best solutions below