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
This defect is specifically when trying to build with the combination of:
preserveModules: true in the output config
The resolve() plugin
Specific dependencies - I have only reproduced it with lit, and can confirm that other dependencies (e.g. uuid) do not reproduce the defect on their own
Actual Behaviour
Build fails because chunkDep is undefined:
index.js → build...
[!] TypeError: Cannot destructure property 'imports' of 'chunkDep' as it is undefined.
at Chunk.getChunkExportDeclarations (C:\D2L\test\2022-12-22-rollup-bug\node_modules\rollup\dist\shared\rollup.js:15788:33)
at Chunk.render (C:\D2L\test\2022-12-22-rollup-bug\node_modules\rollup\dist\shared\rollup.js:15635:67)
at C:\D2L\test\2022-12-22-rollup-bug\node_modules\rollup\dist\shared\rollup.js:16889:72
at Array.map (<anonymous>)
at renderChunks (C:\D2L\test\2022-12-22-rollup-bug\node_modules\rollup\dist\shared\rollup.js:16889:53)
at Bundle.generate (C:\D2L\test\2022-12-22-rollup-bug\node_modules\rollup\dist\shared\rollup.js:17102:19)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async C:\D2L\test\2022-12-22-rollup-bug\node_modules\rollup\dist\shared\rollup.js:25229:27
at async catchUnfinishedHookActions (C:\D2L\test\2022-12-22-rollup-bug\node_modules\rollup\dist\shared\rollup.js:24367:20)
at async Promise.all (index 0)
The text was updated successfully, but these errors were encountered:
Rollup Version
3.8.0
Operating System (or Browser)
Windows
Node Version (if applicable)
v16.15.1
Link To Reproduction
https://stackblitz.com/edit/rollup-repro-jkdrca?file=package.json
Expected Behaviour
Successful build (v3.7.5 builds successfully).
This defect is specifically when trying to build with the combination of:
preserveModules: true
in the output configresolve()
pluginlit
, and can confirm that other dependencies (e.g.uuid
) do not reproduce the defect on their ownActual Behaviour
Build fails because
chunkDep
is undefined:The text was updated successfully, but these errors were encountered: