-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
Build fail when using React.cache
in sitemap.ts
#55561
Comments
This is expected. The Next.js will already cache the |
We patched a fix in next 13.5 that this API is available now for |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://github.com/mwskwong/cache-in-sitemap
To Reproduce
React.cache
insitemap.ts
Current vs. Expected behavior
Current: the following error will appear during build
Expected: build should be successful
Verify canary release
Provide environment information
Which area(s) are affected? (Select all that apply)
App Router
Additional context
No response
NEXT-1635
The text was updated successfully, but these errors were encountered: