{
    "url": "https://delaparra-services.nl/knowledge-hub/referenceerror",
    "locale": "en",
    "title": "ReferenceError: Knowledge hub | DeLaParra Services",
    "description": "The code refers to a variable or function that does not exist (has not been declared).",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/referenceerror",
        "nl": "https://delaparra-services.nl/nl/kennisbank/referenceerror"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/referenceerror.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/referenceerror.md",
        "json": "https://delaparra-services.nl/knowledge-hub/referenceerror.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/referenceerror.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/referenceerror.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/referenceerror.csv",
            "encodingFormat": "text/csv",
            "name": "referenceerror.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/referenceerror.json",
            "encodingFormat": "application/json",
            "name": "referenceerror.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/referenceerror.md",
            "encodingFormat": "text/markdown",
            "name": "referenceerror.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/referenceerror.pdf",
            "encodingFormat": "application/pdf",
            "name": "referenceerror.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/referenceerror.zip",
            "encodingFormat": "application/zip",
            "name": "referenceerror.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/referenceerror/skills.zip",
            "encodingFormat": "application/zip",
            "name": "referenceerror-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [ReferenceError](<https://delaparra-services.nl/knowledge-hub/referenceerror>)\n\n  \n\nCategory: Error types \n\n# ReferenceError\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is ReferenceError?\n\n \n\nReferenceError: The code refers to a variable or function that does not exist (has not been declared). A ` ReferenceError ` in JavaScript means the code used a variable or function name that does not exist in the current scope. A typo, a missing import or using a variable before it is declared with ` let ` or ` const ` are common causes.\n\n \n\nDefinition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)\n\n \n\n## Frequently asked questions about ReferenceError\n\n  \n\n### How is ReferenceError used in practice?\n\n \n\nThe message names the missing identifier, such as ` ReferenceError: userName is not defined `, which usually makes the fix quick.\n\n    \n\n### What should you keep in mind with ReferenceError?\n\n \n\nThese errors often appear only in some situations, like a code path that runs rarely or a browser without a feature you assumed. TypeScript and linters such as ESLint catch most of them while you type, before the code ever runs. A bundler that reports missing imports at build time helps too. Treat a ReferenceError in production as a sign that a check is missing from your build process.\n\n \n\n## At a glance\n\n   CategoryError types Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026\n\n \n\n## More Error types terms\n\n \n\n- [NullPointerException](<https://delaparra-services.nl/knowledge-hub/nullpointerexception>) \n- [OutOfMemoryError](<https://delaparra-services.nl/knowledge-hub/outofmemoryerror>) \n- [PermissionDenied](<https://delaparra-services.nl/knowledge-hub/permissiondenied>) \n- [RuntimeError](<https://delaparra-services.nl/knowledge-hub/runtimeerror>) \n- [SegmentationFault](<https://delaparra-services.nl/knowledge-hub/segmentationfault>) \n- [StackOverflowError](<https://delaparra-services.nl/knowledge-hub/stackoverflowerror>)\n\n \n\n[All terms starting with R](<https://delaparra-services.nl/knowledge-hub#letter-r>)\n\n \n\n## Skills\n\n \n\n- ### Systematic Debugging\n\n \n\nUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes\n\n [View skill](<https://delaparra-services.nl/skills/systematic-debugging>) [Download zip](<https://delaparra-services.nl/skills/systematic-debugging/download>) \n- ### Error Handling Patterns\n\n \n\nMaster error handling patterns across languages including exceptions, Result types, error propagation, and graceful degradation to build resilient applications. Use when implementing error handling, designing APIs, or improving application reliability.\n\n [View skill](<https://delaparra-services.nl/skills/error-handling-patterns>) [Download zip](<https://delaparra-services.nl/skills/error-handling-patterns/download>) \n- ### Bug Reproduction Brief\n\n \n\n'Turn a vague, intermittent, or environment-specific bug report into a minimal evidence-backed reproduction before proposing a fix.'\n\n [View skill](<https://delaparra-services.nl/skills/bug-reproduction-brief>) [Download zip](<https://delaparra-services.nl/skills/bug-reproduction-brief/download>)\n\n [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/referenceerror/skills.zip>)\n\n \n\n## Manuals\n\n \n\n- [Understanding common error messages](<https://delaparra-services.nl/manuals/foutmeldingen-begrijpen>) \n- [Node.js and JavaScript](<https://delaparra-services.nl/manuals/nodejs-en-javascript>)\n\n \n\n## Related services\n\n \n\n- [AI code review](<https://delaparra-services.nl/services#service-05>)\n\nWhen you push your new change, I will review your code, help your agent avoid the same mistake again, and get your app ready for deployment. \n- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)\n\nPerhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.\n\n \n\n## Need any help?\n\n \n\nStuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.\n\n  [Get in touch](<https://delaparra-services.nl/availability>)\n\n[HTML version](https://delaparra-services.nl/knowledge-hub/referenceerror)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "FAQPage",
                "@id": "https://delaparra-services.nl/knowledge-hub/referenceerror#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/referenceerror",
                "name": "ReferenceError: Knowledge hub | DeLaParra Services",
                "description": "The code refers to a variable or function that does not exist (has not been declared).",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/referenceerror#term",
                    "name": "ReferenceError",
                    "description": "The code refers to a variable or function that does not exist (has not been declared).",
                    "termCode": "referenceerror",
                    "url": "https://delaparra-services.nl/knowledge-hub/referenceerror",
                    "inLanguage": "en",
                    "keywords": "Error types",
                    "dateModified": "2026-11-25T17:46:29+00:00",
                    "inDefinedTermSet": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#terms"
                    },
                    "isPartOf": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#dataset"
                    },
                    "subjectOf": [
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/referenceerror#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/referenceerror#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/referenceerror#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is ReferenceError?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "The code refers to a variable or function that does not exist (has not been declared). A ReferenceError in JavaScript means the code used a variable or function name that does not exist in the current scope. A typo, a missing import or using a variable before it is declared with let or const are common causes."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "How is ReferenceError used in practice?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "The message names the missing identifier, such as ReferenceError: userName is not defined, which usually makes the fix quick."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with ReferenceError?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "These errors often appear only in some situations, like a code path that runs rarely or a browser without a feature you assumed. TypeScript and linters such as ESLint catch most of them while you type, before the code ever runs. A bundler that reports missing imports at build time helps too. Treat a ReferenceError in production as a sign that a check is missing from your build process."
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/systematic-debugging#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/error-handling-patterns#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/bug-reproduction-brief#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/foutmeldingen-begrijpen#article"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/nodejs-en-javascript#article"
                    }
                ]
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/knowledge-hub/referenceerror#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Knowledge hub",
                        "item": "https://delaparra-services.nl/knowledge-hub"
                    },
                    {
                        "@type": "ListItem",
                        "position": 3,
                        "name": "ReferenceError"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/knowledge-hub/referenceerror#dataset",
                "name": "ReferenceError",
                "description": "The code refers to a variable or function that does not exist (has not been declared).",
                "url": "https://delaparra-services.nl/knowledge-hub/referenceerror",
                "identifier": "https://delaparra-services.nl/knowledge-hub/referenceerror#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/referenceerror#term"
                },
                "creator": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://creativecommons.org/licenses/by/4.0/",
                "creditText": "Coders Lingo (https://coderslingo.com/resources/open-dataset/), CC BY 4.0",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "keywords": "Error types",
                "version": "2026-11-25",
                "dateModified": "2026-11-25T17:46:29+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#dataset",
                    "name": "IT terms from A to Z",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "referenceerror.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/referenceerror.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:29+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "referenceerror.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/referenceerror.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:29+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "referenceerror.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/referenceerror.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:29+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "referenceerror.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/referenceerror.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:29+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "referenceerror.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/referenceerror.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:29+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "referenceerror-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/referenceerror/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:29+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}