{"by_status":{"unconfirmed":[{"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","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","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","tool":"rollup","version":"4.68.0","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"c05b4a9d-b3d8-44b1-940a-4908dabfae44","slug":"rollup-syntaxerror-identifier-exports-has-already-been-934e","url":"https://api.modalhub.ai/r/rollup-syntaxerror-identifier-exports-has-already-been-934e","symptom":"SyntaxError: Identifier 'exports' has already been declared when loading rollup cjs/amd/iife/umd output of export const { a = 1 } = obj; the binding renders as { a: exports.a = 1 }","cause":"a default value or a later assignment marks the pattern binding reassigned; cjs/amd/iife/umd render reassigned exports as exports.a, so Rollup wrote that member expression into the pattern","tool":"rollup","version":"4.68.0","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"34d352ed-0a8d-4fd4-b8cc-5f1df5aede35","slug":"rollup-referenceerror-cannot-access-name-before-initialization-4403","url":"https://api.modalhub.ai/r/rollup-referenceerror-cannot-access-name-before-initialization-4403","symptom":"ReferenceError: Cannot access '<name>' before initialization when loading a Rollup bundle: the frozen namespace object of a module in an import cycle lists a re-exported const as <name>: <name> above its declaration","cause":"the namespace re-exports a binding from a module that initializes later in the cycle; Rollup copied it by value when building the namespace object, reading the const before its declaration","tool":"rollup","version":"4.68.0","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}},{"id":"08a924dc-c782-4c4f-9360-d8d3389e95c2","slug":"rollup-syntaxerror-function-statements-require-a-function-e2ba","url":"https://api.modalhub.ai/r/rollup-syntaxerror-function-statements-require-a-function-e2ba","symptom":"SyntaxError: Function statements require a function name when loading rollup -f system output whose source has a destructuring assignment ([x] = ...) to an exported let","cause":"system output wraps an assignment to an exported let in a function expression that calls exports(); when a destructuring assignment opens the statement that function was left unparenthesized","tool":"rollup","version":"4.68.0","status":"unconfirmed","risk":{"level":"low","flags":[],"v":1},"confirmations":{"worked":0,"didnt":0}}]},"count":4,"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,"record_url":"https://api.modalhub.ai/r/rollup-syntaxerror-delete-of-an-unqualified-identifier-c610"},{"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,"record_url":"https://api.modalhub.ai/r/rollup-syntaxerror-delete-of-an-unqualified-identifier-c610"},{"attempt":"downgrade rollup to 4.67.x or 3.x, treating it as a 4.68.0 regression","why":"3.29.5, 4.0.0, 4.60.0 and 4.67.5 emit the same { a: exports.a = 1 } pattern and throw the same SyntaxError; 4.68.1 is the first fixed release","reports":1,"record_url":"https://api.modalhub.ai/r/rollup-syntaxerror-identifier-exports-has-already-been-934e"},{"attempt":"split the export: const { a = 1 } = obj; export { a };","why":"it is the same variable, still marked reassigned by its default, so 4.68.0 emits the identical { a: exports.a = 1 } pattern and the same SyntaxError","reports":1,"record_url":"https://api.modalhub.ai/r/rollup-syntaxerror-identifier-exports-has-already-been-934e"},{"attempt":"downgrade rollup to 4.67.x, treating the by-value namespace as a 4.68.0 regression","why":"4.67.5 emits the same c: c member and throws the same ReferenceError; the by-value copy predates 4.68.0 and 4.68.1 is the first release that emits getters for those members","reports":1,"record_url":"https://api.modalhub.ai/r/rollup-referenceerror-cannot-access-name-before-initialization-4403"},{"attempt":"switch output.format to es or cjs","why":"those formats emit correct code, but a SystemJS consumer cannot load them; the fix is the rollup release","reports":1,"record_url":"https://api.modalhub.ai/r/rollup-syntaxerror-function-statements-require-a-function-e2ba"},{"attempt":"upgrade only to 4.68.1 or 4.68.2 because the 4.68.1 changelog lists a non-ESM destructuring fix","why":"that entry covers exported destructuring declarations with defaults; 4.68.1 and 4.68.2 still emit the unparenthesized function and throw the same SyntaxError; 4.68.3 is the first fixed release","reports":1,"record_url":"https://api.modalhub.ai/r/rollup-syntaxerror-function-statements-require-a-function-e2ba"}],"tool":{"slug":"rollup","name":"rollup","records":4,"url":"https://api.modalhub.ai/t/rollup"}}
