-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Old fixed errors from nested files reappear #15722
Labels
type: bug
An issue or pull request relating to a bug in Gatsby
Comments
karlhorky
changed the title
Recover from solved errors in nested files without restarting
Old errors in nested files reappear after resolution
Jul 15, 2019
develop
karlhorky
changed the title
Old errors in nested files reappear after resolution
Old errors from nested files reappear after resolution
Jul 15, 2019
sidharthachatterjee
added
the
type: bug
An issue or pull request relating to a bug in Gatsby
label
Jul 15, 2019
Thank you for reporting this @karlhorky and for the detailed steps to reproduce! I'm going to take a look at this tomorrow and respond here again with further details |
karlhorky
changed the title
Old errors from nested files reappear after resolution
Old fixed errors from nested files reappear
Jul 16, 2019
gatsbot
bot
added
the
stale?
Issue that may be closed soon due to the original author not responding any more.
label
Aug 6, 2019
karlhorky
added
not stale
and removed
stale?
Issue that may be closed soon due to the original author not responding any more.
labels
Aug 7, 2019
I've tested this locally (new hello-world, create a page-2.js file, put something valid in it, bad import, delete page-2.js file) and the page reloads and the error in the browser isn't shown. As such I'll close this as solved. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When errors occur within files within directories, the errors are reported on the command line and in the browser (this is good!). However, when the error has been resolved by removing the offending files, the errors do not go away.
Steps to reproduce
gatsby new
import blah from 'blah'
- an import of a non-existent package)gatsby develop
has been restartedVideo
Expected result
At step 6. you should never see the old invalid error anymore.
Actual result
You do see the error.
Motivation
To prevent confusion about false negative error reporting.
Related
Maybe related to #14395 or #11456
Environment
System:
OS: macOS 10.14.5
CPU: (4) x64 Intel(R) Core(TM) i7-6567U CPU @ 3.30GHz
Shell: 5.5.1 - /usr/local/bin/zsh
Binaries:
Node: 12.1.0 - /var/folders/v0/ssn2yzps0wq9j6ngd3128_440000gn/T/yarn--1563185093192-0.21022637200966066/node
Yarn: 1.16.0 - /var/folders/v0/ssn2yzps0wq9j6ngd3128_440000gn/T/yarn--1563185093192-0.21022637200966066/yarn
npm: 6.9.0 - /usr/local/bin/npm
Languages:
Python: 2.7.10 - /usr/bin/python
Browsers:
Chrome: 75.0.3770.100
Firefox: 67.0.2
Safari: 12.1.1
npmPackages:
gatsby: ^2.13.21 => 2.13.21
gatsby-image: ^2.2.6 => 2.2.6
gatsby-plugin-manifest: ^2.2.3 => 2.2.3
gatsby-plugin-offline: ^2.2.4 => 2.2.4
gatsby-plugin-react-helmet: ^3.1.2 => 3.1.2
gatsby-plugin-sharp: ^2.2.7 => 2.2.7
gatsby-source-filesystem: ^2.1.5 => 2.1.5
gatsby-transformer-sharp: ^2.2.3 => 2.2.3
The text was updated successfully, but these errors were encountered: