Skip to content

Issue with rollup 4.6.0, building with jspreadsheet #5274

@olivierchatry

Description

@olivierchatry

Rollup Version

4.5.1

Operating System (or Browser)

Fedora 39

Node Version (if applicable)

20

Link To Reproduction

https://stackblitz.com/edit/vitejs-vite-kuhfs9?file=index.html,package.json&terminal=dev

Expected Behaviour

Software should build. I'm sorry I used a vite repl, but it's the only way I found to show the behavior. I think 4.6.0 does not work as well as when I force the dependency, I get the same results.

Actual Behaviour

11.19 [commonjs--resolver] Identifier "val" has already been declared
11.19 file: /build/app/node_modules/jspreadsheet-ce/dist/index.js:3499:24
11.19 3497: var i = parseInt(time[1]);
11.19 3498: obj.date = [y, m, d, h, i, 0];
11.19 3499: var val = obj.setLabel(newValue, obj.options);
11.19 ^
11.19 3500:
11.19 3501: // Current selection day
11.19 error during build:
11.19 RollupError: Identifier "val" has already been declared
11.19 at error (file:///build/app/node_modules/rollup/dist/es/shared/parseAst.js:337:30)
11.19 at Module.error (file:///build/app/node_modules/rollup/dist/es/shared/node-entry.js:12737:16)
11.19 at BlockScope.addDeclaration (file:///build/app/node_modules/rollup/dist/es/shared/node-entry.js:7520:32)
11.19 at TrackingScope.addDeclaration (file:///build/app/node_modules/rollup/dist/es/shared/node-entry.js:7522:50)
11.19 at TrackingScope.addDeclaration (file:///build/app/node_modules/rollup/dist/es/shared/node-entry.js:9767:22)
11.19 at BlockScope.addDeclaration (file:///build/app/node_modules/rollup/dist/es/shared/node-entry.js:7522:50)
11.19 at Identifier.declare (file:///build/app/node_modules/rollup/dist/es/shared/node-entry.js:7188:39)
11.19 at VariableDeclarator.declareDeclarator (file:///build/app/node_modules/rollup/dist/es/shared/node-entry.js:10178:17)
11.19 at VariableDeclaration.initialise (file:///build/app/node_modules/rollup/dist/es/shared/node-entry.js:11843:24)
11.19 at new NodeBase (file:///build/app/node_modules/rollup/dist/es/shared/node-entry.js:4607:14)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions