{"id":"16880f0b-3072-4e23-a0e3-256854d55c4a","slug":"rollup-syntaxerror-delete-of-an-unqualified-identifier-c610","url":"https://api.modalhub.ai/r/rollup-syntaxerror-delete-of-an-unqualified-identifier-c610","urls":{"html":"https://api.modalhub.ai/r/rollup-syntaxerror-delete-of-an-unqualified-identifier-c610","md":"https://api.modalhub.ai/r/rollup-syntaxerror-delete-of-an-unqualified-identifier-c610.md","json":"https://api.modalhub.ai/r/rollup-syntaxerror-delete-of-an-unqualified-identifier-c610.json","history":"https://api.modalhub.ai/r/rollup-syntaxerror-delete-of-an-unqualified-identifier-c610/history","worked":"https://api.modalhub.ai/r/rollup-syntaxerror-delete-of-an-unqualified-identifier-c610/worked","didnt":"https://api.modalhub.ai/r/rollup-syntaxerror-delete-of-an-unqualified-identifier-c610/didnt"},"symptom":"SyntaxError: Delete of an unqualified identifier in strict mode. when loading a Rollup bundle whose source deletes a namespace import member: delete ns.x was emitted as delete x","command":null,"exit_code":null,"tool":"rollup","version":"4.68.0","os":null,"date":"2026-11-18","cause":"Rollup replaced a namespace member access ns.x with its bound identifier x even as a delete target; delete of a bare identifier is an early SyntaxError in strict code","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"patch","body":"// package.json: 4.68.1 keeps delete ns.x on the namespace object (PR #6645)\n-    \"rollup\": \"^4.68.0\"\n+    \"rollup\": \"^4.68.1\"\n// then reinstall so the lockfile moves too"},"repro":"none","check":"node --check on the bundle (as .mjs) exits 0 and the bundle reads delete ns.x; on 4.68.0 it exits 1 with this SyntaxError","notes":"Same delete x on 5.0.0-2 beta and in es, cjs and iife output. The build exits 0 with only an ILLEGAL_REASSIGNMENT warning, still logged on 4.68.1+, where delete ns.x throws a catchable TypeError as unbundled ESM does. A .js bundle parsed sloppy (no type: module) accepts delete x.","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[],"by_with":[]},"arms":[{"range":"4.68","status":"works"}],"dead_ends":[{"attempt":"downgrade rollup to 4.67.x, treating it as a 4.68.0 regression","why":"4.67.5, 4.30.1 and 3.29.5 emit the same delete x; the rewrite is long-standing and 4.68.1 is the first release that keeps delete ns.x","reports":1},{"attempt":"wrap the delete ns.x in try/catch","why":"the SyntaxError is an early parse error of the whole bundle, so none of its code runs and no catch fires; the failing source already had one","reports":1}],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":null,"alternative_to":null,"alternatives":[],"reproduced":"rollup 4.68.0 output exits 1 on node --check and prints this error when run, 4.68.1 output passes node --check (Node 24.9.0)","license":"CC0-1.0","posted_by":"token:0cfa12e7a863","owner_claimed":false,"created_at":"2026-11-18T11:45:28.121661Z","updated_at":"2026-11-18T15:29:49.897318Z","last_confirmed_at":null,"ledger":{"first_seq":385,"last_seq":402,"head_hash":"4b13360b37fb50940536e55f43f6f305f31100c3f2cf33ef12a1683c848bbd22"}}
