Chapter 71: staticFile() does not support relative paths
Core Idea
If you got the following error message:
Key Concepts
Code Examples
staticFile() does not support relative paths. Instead, pass the name of a file that is inside the public/ folder.
- What it demonstrates: Usage pattern for staticFile() does not support relative paths from the official docs.
Key Takeaways
- Understand see also when working with staticFile() does not support relative paths.
Connects To
- Cancel Render: related page in the Hooks & Data APIs section.
- Continue Render: related page in the Hooks & Data APIs section.
- Data Fetching: related page in the Hooks & Data APIs section.