-
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
Module not found – Error: Can't resolve deleted PAGE #32300
Comments
Does the issue still occur when you use |
@njbmartin yes. I mean, no. When running build or clean, everything is ok. This issue accrues during development, and it’s also why this is an issue. Renaming a file system page (path) including a folder (directory) name change should work without throwing an error. |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Let me check it out on v4 ✨ |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
@tujoworker Are you still able to reproduce this? |
@garethpbk Yes. I updated the reproduction repo to v4.2 – the thing is, once a directory/folder gets deleted , Gatsby (in development) does not recognize that it gets deleted. |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Hey you, robot – we shouldn’t close this yet. |
Preliminary Checks
Description
The bug is related to the File Route API.
The same bug happens with yarn v1, v2 and v3.
Both the latest Gatsby version (v4.15) is effected, but also v2.9 has the same bug, with a different message. More info down below.
A minimal reproduction is given.
Reproduction Link
https://github.com/tujoworker/gatsby-file-route-api-bug
Steps to Reproduce
clone the repo.
run
yarn
Start Gatsby by using the start script:
yarn start
Duplicate
src/pages/folder/
. Give the page a new name,e.g.
src/pages/folder-copy/
. Everything is fine.Delete
src/pages/folder-copy/
again.Enter another file in the repo (within your code editor), e.g.
src/pages/index.js
and hit save.The error message:
Module not found: Error: Can't resolve './../../../src/pages/folder-copy/index.js' in '/dev/gatsby-filerouteapi-bug/.cache/this_is_virtual_fs_path/$virtual'
```
Expected Result
To delete the stale page(s). No error messages.
Actual Result
Module not found: Error: Can't resolve './../../../src/pages/folder-copy/index.js' in '/dev/gatsby-filerouteapi-bug/.cache/this_is_virtual_fs_path/$virtual'
In v2 the error message is:
Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: