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.

Warning prevents reload

See original GitHub issue

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

  ⚠  http://eslint.org/docs/rules/no-console  Unexpected console statement  
  .../src/index.js:60:1
  console.log('foo');
   ^

✘ 1 problem (0 errors, 1 warning)

[WDS] App updated. Recompiling...
client?843a:40 [WDS] Errors while compiling. Reload prevented.

I’ve seen previous issues where this is considered a bug (such as #707) and was fixed and closed at the time.

If the current behavior is a bug, please provide the steps to reproduce.

Add a warning scenario with ESLint and trigger it.

What is the expected behavior?

The browser reloads after file changes that do not cause any actual errors.

If this is a feature request, what is motivation or use case for changing the behavior?

Please mention your webpack and Operating System version.

OS - Arch Linux webpack - 2.2.1 webpack-dev-server - 2.3.0

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
chemoishcommented, Oct 18, 2017

@mnpenner https://github.com/MoOx/eslint-loader#emitwarning-default-false

{
  enforce: 'pre',
  exclude: /node_modules/,
  test: /\.jsx?$/,
  use: {
    loader: 'eslint-loader',
    options: {
      emitWarning: true, // @note: only for development
    },
  },
},
0reactions
kumaresan-subramanicommented, Apr 11, 2018

Errors while compiling. Reload prevented.

this is my error, i didn’t install eslint-loader but this error occur what will i do?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prevent refresh of page after alert - javascript - Stack Overflow
I am successful on that, but if the alert kicks in, the page refresh and since i am using a pop up, this...
Read more >
Preventing the "Reload this page to use this extension" warning
I'm looking at updating my current manifest v2 extension to be more compliant with the more restrictive permissions that are planned as part ......
Read more >
"LUA Warning" window keeps appearing after using /reload ...
But as soon as I reloaded the UI, I've been getting a “LUA Warning” message that's filled with information I don't understand. T…...
Read more >
How to catch beforeunload and stop page to reload without alert
Hi, I'd like to add functionality, when it has been change and user clicks some link on the page it warns him about...
Read more >
preventing URL reload | OutSystems
Instead of alert, you have to return "True" or "false", like: $(window).on('popstate', function(event) { return true; });. and then send the user to...
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