JavaScript error library
Paste the message you are seeing and find what it means and how to fix it.
- TypeError: Cannot read properties of undefined (reading 'map')Your code called .map() on a value that is undefined at that moment.
- TypeError: x is not a functionYou tried to call something as a function, but at that moment it is undefined, an object, or another type..
- ReferenceError: x is not definedJavaScript could not find a variable with that name in the current scope..
- ReferenceError: window is not definedCode that needs the browser ran on the server, where there is no window, document or localStorage..
- Access to fetch at 'https://api.example.com' from origin 'https://app.example.com' has been blocked by CORS policyThe browser asked the server whether your page may read its response, and the server did not say yes.
- Warning: Each child in a list should have a unique "key" prop.React needs a stable identity for each item in a rendered list so it can update the right one..
- Hydration failed because the initial UI does not match what was rendered on the server.The HTML the server produced differs from what React rendered first in the browser, so React cannot attach to it cleanly..
- Error: Maximum update depth exceeded.A component keeps updating its own state in a loop, and React stopped it after too many rounds..
- Invalid hook call. Hooks can only be called inside of the body of a function component.A React hook ran somewhere React does not allow it, or there are two copies of React in your app..
- TypeError: Failed to fetchThe request never got a usable response.
- ResizeObserver loop completed with undelivered notifications.A harmless browser notice.
- ChunkLoadError: Loading chunk 123 failed.A lazy-loaded piece of your app could not be downloaded.
- Mixed Content: The page at 'https://…' was loaded over HTTPS, but requested an insecure resourceA secure page tried to load something over plain HTTP, and the browser blocked it..
- Uncaught (in promise) ErrorAn async operation failed and nothing was waiting to catch the failure..
- Refused to load the script 'https://…' because it violates the following Content Security Policy directiveThe page has a Content Security Policy that does not allow that resource, so the browser refused to load or run it..
- Failed to load resource: the server responded with a status of 404 (Not Found)The browser asked for a file or API address that does not exist on the server..