You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When enabling webpack5, loading data from the filesystem breaks if revalidation is enabled.
Expected Behavior
First, it should not throw an error :). Revalidation of data from the "local" filesystem only does not make any sense, but in some cases, e.g. static data such as translations are loaded from JSON and more dynamic data from external sources.
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
vercel
locked as resolved and limited conversation to collaborators
Jan 28, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Next.js are you using?
next@canary
What version of Node.js are you using?
15.12.0
What browser are you using?
Chrome 89.0.4389.114
What operating system are you using?
How are you deploying your application?
git / vercel
Describe the Bug
When enabling webpack5, loading data from the filesystem breaks if revalidation is enabled.
Expected Behavior
First, it should not throw an error :). Revalidation of data from the "local" filesystem only does not make any sense, but in some cases, e.g. static data such as translations are loaded from JSON and more dynamic data from external sources.
To Reproduce
Follow https://nextjs.org/docs/basic-features/data-fetching#reading-files-use-processcwd and enable
revalidate
. The subsequent request will show an error such as:Repository that loads data from the filesystem: https://github.com/wiesson/next-test
The text was updated successfully, but these errors were encountered: