Meta tags:
description= Command test Is this a regression? Not sure — this may be a regression introduced by the linker rewrite in 22.2.0 ( migrate Angular Linker to oxc-parser and magic-string ), since I have not tested this with 22.1.x. The previous version i...;
Headings (most frequently used words):
navigation, in, description, metadata, footer, this, was, unit, test, builder, vitest, 22, oxc, linker, referenceerror, on, class, referenced, by, name, before, its, own, declaration, partially, compiled, npm, library, 34198, menu, repository, activity, issue, actions, command, is, regression, the, previous, version, which, bug, not, present, minimal, reproduction, exception, or, error, your, environment, anything, else, relevant, assignees, labels, type, projects, milestone, relationships, development,
Text of the page (most frequently used words):
the (29), angular (19), cascadeselect (16), this (15), and (15), github (14), not (11), issue (11), test (11), build (10), #linker (10), triaged (9), gemini (9), that (8), openng (8), for (7), file (7), class (7), label (6), noting (6), has (6), been (6), vitest (6), oxc (6), its (6), cascadeselectsub (6), referenceerror (6), before (6), declaration (6), you (5), security (5), copilot (5), sign (5), optimus (5), your (5), node_modules (5), builder (5), unit (5), with (5), code (5), 2026 (4), actions (4), which (4), changelog (4), npm (4), cli (4), line (4), referenced (4), all (4), support (4), footer (3), navigation (3), open (3), yet (3), needstriage (3), milestone (3), projects (3), type (3), area (3), one (3), have (3), sep (3), fixes (3), same (3), new (3), declared (3), partial (3), ɵɵngdeclarefactory (3), package (3), src (3), 131 (3), copy (3), link (3), 34198 (3), name (3), own (3), partially (3), compiled (3), library (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), reload (3), developers (3), customer (3), enterprise (3), grade (3), features (3), time (2), community (2), status (2), pull (2), requests (2), development (2), labels (2), metadata (2), added (2), robot (2), component (2), whole (2), suite (2), fail (2), load (2), reported (2), parser (2), magic (2), string (2), several (2), source (2), may (2), identifier (2), deps (2), ivy (2), compilation (2), ɵɵngdeclarecomponent (2), affected (2), latest (2), version (2), cannot (2), access (2), initialization (2), static_initializer (2), path (2), sourcemap (2), real (2), fesm2022 (2), mjs (2), reproduction (2), but (2), tests (2), under (2), correctly (2), reference (2), since (2), static (2), description (2), was (2), regression (2), insights (2), 196 (2), repository (2), signed (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), learn (2), business (2), products (2), secret (2), can, perform, action, share, personal, information, manage, cookies, contact, docs, privacy, terms, inc, app, branches, none, relationships, due, date, assigned, assignees, comment, already, account, join, conversation, free, activity, affects, every, whose, import, graph, pulls, via, shared, header, module, causing, just, surfaced, right, after, upgrading, per, migrated, included, related, release, syntax, corruption, parenthesized, expressions, mapping, edge, case, covered, based, implementation, earlier, than, factory, array, references, without, going, through, forwardref, broken, distributed, format, reporting, anything, else, relevant, node, v24, windows, environment, note, shown, from, evaluated, exception, error, don, isolated, provided, full, trace, exact, packet, minimal, builds, fine, classic, karma, pipeline, suggests, applied, there, specific, cross, pattern, devkit, until, 452, further, down, emitted, literal, temporal, dead, zone, applies, referencing, executes, throws, unless, processes, output, into, fully, linked, form, first, presumably, order, sensitive, ɵɵfactorytarget, target, token, ɵfac, 176, 274, includes, traced, actual, shipped, above, disk, when, running, runner, files, crashes, response, previous, bug, present, sure, introduced, rewrite, migrate, tested, command, body, opened, luisescamillamartin, more, items, issues, message, dismiss, alert, switched, accounts, out, appearance, settings, search, pricing, event, talks, workshops, what, next, partners, about, company, forum, events, webinars, blog, resource, connect, resources, premium, advanced, add, ons, trust, why, evaluate, see, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, improvements, across, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, environments, codespaces, analysis, enforcement, automation, ship, coding, agent, tasks, automated, work, hosting, review, collaboration, platform, menu, skip, content,
Text of the page (random words):
unit test builder vitest 22 2 0 oxc linker referenceerror on class referenced by name before its own declaration in a partially compiled npm library issue 34198 angular angular cli github skip to content navigation menu sign in products platform github repository hosting code review and collaboration copilot ai coding agent for tasks projects and automated work build ship actions ci cd and automation code quality quality analysis fixes and enforcement codespaces cloud development environments secure code security vulnerability detection and remediation secret protection secret scanning and leak prevention all features developers learn documentation training certifications build build with copilot customize copilot integrations explore trending repos github sponsors developer articles changelog changelog your source for the latest features improvements and fixes across github products all in one place businesses by stage enterprises team startups nonprofits by industry healthcare financial services manufacturing government see all industries evaluate github why github customer stories business insights trust center add ons github advanced security enterprise grade code security copilot for business enterprise grade ai features premium support enterprise grade 24 7 support resources learn connect documentation resource center blog events webinars community forum customer stories integrations support customer support training github status company about partners changelog github universe github universe the event for developers by developers talks workshops and what s next for github pricing search sign in sign up appearance settings 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 message angular angular cli repository navigation code issues 196 196 pull requests 19 19 actions security and quality 8 8 insights more items unit test builder vitest 22 2 0 oxc linker referenceerror on class referenced by name before its own declaration in a partially compiled npm library 34198 new issue copy link new issue copy link open open unit test builder vitest 22 2 0 oxc linker referenceerror on class referenced by name before its own declaration in a partially compiled npm library 34198 copy link labels area angular build gemini triaged label noting that an issue has been triaged by gemini label noting that an issue has been triaged by gemini milestone needstriage description luisescamillamartin opened on sep 29 2026 issue body actions command test is this a regression not sure this may be a regression introduced by the linker rewrite in 22 2 0 migrate angular linker to oxc parser and magic string since i have not tested this with 22 1 x the previous version in which this bug was not present was no response description when running ng test with the angular build unit test builder vitest runner on angular cli angular build 22 2 0 several test files fail to load at all 0 tests reported whole suite crashes with referenceerror cannot access cascadeselect before initialization at cascadeselectsub static_initializer node_modules openng src cascadeselect cascadeselect ts 131 30 i traced this to the actual shipped file the path above is a sourcemap reference not a real file on disk node_modules openng optimus ui fesm2022 openng optimus ui cascadeselect mjs in that file cascadeselectsub is declared at line 176 and its static ivy partial declaration at line 274 includes static ɵfac i0 ɵɵngdeclarefactory type cascadeselectsub deps token cascadeselect target i0 ɵɵfactorytarget component cascadeselect the referenced class is not declared until line 452 further down in the same file since this is emitted as a literal class declaration temporal dead zone applies referencing the identifier cascadeselect before its declaration executes throws a referenceerror unless the angular linker processes this partial compilation output ɵɵngdeclarefactory ɵɵngdeclarecomponent into a fully linked form first which is presumably not order sensitive this same package builds and tests fine under the classic karma angular devkit build angular pipeline which suggests the linker is applied correctly there but not or not correctly for this specific cross class reference pattern under the unit test builder in 22 2 0 minimal reproduction i don t have an isolated reproduction yet but you ve provided the full trace and the exact line of the affected packet exception or error referenceerror cannot access cascadeselect before initialization cascadeselectsub static_initializer node_modules openng src cascadeselect cascadeselect ts 131 30 node_modules openng src cascadeselect cascadeselect ts 131 39 note the path shown is from the package s sourcemap the real file evaluated is node_modules openng optimus ui fesm2022 openng optimus ui cascadeselect mjs your environment angular cli 22 2 0 angular build 22 2 0 vitest 5 0 2 node v24 21 0 os windows anything else relevant the affected npm package is openng optimus ui latest version at time of reporting the broken class is cascadeselect cascadeselectsub distributed in ivy partial compilation format ɵɵngdeclarecomponent ɵɵngdeclarefactory cascadeselectsub is declared earlier in the file than cascadeselect and its factory s deps array references cascadeselect by identifier without going through forwardref this surfaced right after upgrading to 22 2 0 which per the changelog migrated the angular linker to oxc parser magic string and included several linker related fixes in the same release syntax corruption parenthesized expressions source mapping this may be an edge case not yet covered by the new oxc based linker implementation affects every test file whose import graph pulls in this component via a shared header footer module causing the whole suite not just one test to fail to load reported as 0 test by vitest activity angular robot added area angular build gemini triaged label noting that an issue has been triaged by gemini label noting that an issue has been triaged by gemini on sep 29 2026 angular robot added this to the needstriage milestone on sep 29 2026 sign up for free to join this conversation on github already have an account sign in to comment metadata metadata assignees no one assigned labels area angular build gemini triaged label noting that an issue has been triaged by gemini label noting that an issue has been triaged by gemini type no type projects no projects milestone needstriage no due date relationships none yet development no branches or pull requests issue actions open in github copilot app footer 2026 github inc footer navigation terms privacy security status community docs contact manage cookies do not share my personal information you can t perform that action at this time
|