Nuxt.js: Console errors don't disappear after fixing

Created on 26 Sep 2018  路  21Comments  路  Source: nuxt/nuxt.js

Version

v2.0.0

Reproduction link

http://localhost:3000

Steps to reproduce

Follow the instructions in nuxt.js repo README.md:
1) yarn add nuxt
2) add scripts: {"nuxt": "nuxt"} to package.json
3) add file pages/index.vue with content

<script>
export default {
}
</script>

4) yarn run nuxt

Then try to remove } in pages/index.vue. You will see error in terminal. After return } back, error in terminal not disappear and HMR will cease work.

What is expected ?

Nuxt should see that i fix error and show success inscription.

What is actually happening?

Error stay

This bug report is available on Nuxt community (#c7833)
bug-report in progress stale

Most helpful comment

Yea, same issue happens to me also. It's really annoying, because in terminal you normally check if everything is compiled correctly.

All 21 comments

~Can not reproduce.~

nuxt-cannot-reproduce

Error in terminal disappear too?

Look at the console: https://glitch.com/edit/#!/join/bec57521-10a6-419d-9a08-3cc694b58de0

Ah, gotcha. The error will stay in console.
This is only a visual bug though as HMR will continue to work (as shown in the GIF)

Same issue, reported here:
https://stackoverflow.com/questions/52715349/linter-eslint-keep-errors-after-fix-them-in-nuxt-app

It looks like you can keep working, but for newcomers users it's very confusing

Yea, same issue happens to me also. It's really annoying, because in terminal you normally check if everything is compiled correctly.

same issue, the last eslint error message not auto remove when I fixed for eslint.

Thanks for your contribution to Nuxt.js!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of nuxt-edge
  2. Comment the steps to reproduce it

Issues that are labeled as 馃晲Pending will not be automatically marked as stale.

There is no screen clearing anymore ;)
https://github.com/nuxt/webpackbar/releases

@manniL Can you elaborate how that update affects this issue? I tried using Nuxt 2.32 in spa-mode and get "compiled successfully" regardless of any errors in my files. Do I need to adjust my config?

showcase

Errors will be clearly shown but there is no screen clear anymore ;)

@manniL I see, thanks for elaborating. This is my current result in spa-mode:

ayy

@evry-johber That's strange :thinking: Could you open an issue for webpackbar here? Please include your editor and as much info as possible :relaxed:

@manniL Sure, I'll see what I can do to create a minimal reproducible example

@manniL Hmm, did a fresh npx create-nuxt-app, did the very same change as you did in universal mode, and still no error reported. I'm using Node 10.13 on Windows 10. Should be enough to add eslint in the create-nuxt-app wizard, right?

@evry-johber That should even work without eslint as a component couldn't be found while building :thinking:

@manniL It seems to work fine after a reboot :) Is there any way to capture more errors in the output window? For example, if I change components: { Logo } to components: { Logo123 }, it still compiles successfully, despite having eslint enabled.

Sure. Make your eslint-config more strict ;)

image

I'd suggest our setup (https://github.com/nuxt/eslint-config)

Prod example: https://github.com/manniL/lichter.io/blob/master/.eslintrc.js

@manniL Aaah, thank you!!

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vadimsg picture vadimsg  路  3Comments

gary149 picture gary149  路  3Comments

shyamchandranmec picture shyamchandranmec  路  3Comments

surmon-china picture surmon-china  路  3Comments

mikekidder picture mikekidder  路  3Comments