No Code Attached Yet bug
avatar brianteeman
brianteeman
10 May 2026

What happened?

1.still cant run npm i on the 6.2 branch even after the latest commit that supposedly fixed it

Version

6.2

Expected result

npm i completes

Actual result

Failed Task [plg_editors_codemirror::js]
Trace: Error: Processing failed for "D:\repos\j61\media_source\plg_editors_codemirror\js\codemirror.es6.js".
    at file:///D:/repos/j61/build/build-modules-js/javascript/js-handle.mjs:157:11
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
    at async Promise.all (index 0)
    at async CodemirrorModuleBuilder.js (file:///D:/repos/j61/media_source/plg_editors_codemirror/builder.mjs:119:5)
    at async Promise.all (index 44) {
  [cause]: Error [RollupError]: Invalid value for option "output.file" - when building multiple chunks, the "output.dir" option must be used, not "output.file". To inline dynamic imports, set the "inlineDynamicImports" option.
      at getRollupError (file:///D:/repos/j61/node_modules/rollup/dist/es/shared/parseAst.js:402:41)
      at error (file:///D:/repos/j61/node_modules/rollup/dist/es/shared/parseAst.js:398:42)
      at validateOptionsForMultiChunkOutput (file:///D:/repos/j61/node_modules/rollup/dist/es/shared/node-entry.js:20756:16)
      at Bundle.generate (file:///D:/repos/j61/node_modules/rollup/dist/es/shared/node-entry.js:20609:17)
      at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
      at async file:///D:/repos/j61/node_modules/rollup/dist/es/shared/node-entry.js:23558:27
      at async catchUnfinishedHookActions (file:///D:/repos/j61/node_modules/rollup/dist/es/shared/node-entry.js:22925:16)
      at async Promise.all (index 0)
      at async CodemirrorModuleBuilder.js (file:///D:/repos/j61/media_source/plg_editors_codemirror/builder.mjs:119:5)
      at async Promise.all (index 44) {
    code: 'INVALID_OPTION',
    url: 'https://rollupjs.org/configuration-options/#output-dir'
  }
}
    at file:///D:/repos/j61/build/build-modules-js/builder/builder-factory.mjs:74:21
    at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
    at async Promise.all (index 44)
Processing failed for "D:\repos\j61\media_source\plg_editors_codemirror\js\codemirror.es6.js".
npm error code 1
npm error path D:\repos\j61
npm error command failed
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c node --env-file=./build/production.env build/build.mjs build -a
npm error A complete log of this run can be found in: C:\Users\brian\AppData\Local\npm-cache\_logs\2026-05-10T19_37_15_572Z-debug-0.log
 silly packumentCache corgi:https://registry.npmjs.org/smtp-tester set size:17768 disposed:false
80 info run cypress@15.11.0 postinstall node_modules/cypress node dist/index.js --exec install
81 info run cypress@15.11.0 postinstall { code: 0, signal: null }
82 verbose stack Error: command failed
82 verbose stack     at promiseSpawn (C:\Users\brian\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:22:22)
82 verbose stack     at spawnWithShell (C:\Users\brian\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:124:10)
82 verbose stack     at promiseSpawn (C:\Users\brian\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:12:12)
82 verbose stack     at runScriptPkg (C:\Users\brian\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\run-script\lib\run-script-pkg.js:79:13)
82 verbose stack     at runScript (C:\Users\brian\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\run-script\lib\run-script.js:12:10)
82 verbose stack     at async Install.exec (C:\Users\brian\AppData\Roaming\npm\node_modules\npm\lib\commands\install.js:162:9)
82 verbose stack     at async Npm.exec (C:\Users\brian\AppData\Roaming\npm\node_modules\npm\lib\npm.js:193:9)
82 verbose stack     at async module.exports (C:\Users\brian\AppData\Roaming\npm\node_modules\npm\lib\cli\entry.js:67:5)
83 verbose pkgid joomla@6.2.0
84 error code 1
85 error path D:\repos\j61
86 error command failed
87 error command C:\WINDOWS\system32\cmd.exe /d /s /c node --env-file=./build/production.env build/build.mjs build -a
88 verbose cwd D:\repos\j61
89 verbose os Windows_NT 10.0.26200
90 verbose node v24.15.0
91 verbose npm  v11.14.1
92 verbose exit 1
93 verbose code 1
94 error A complete log of this run can be found in: C:\Users\brian\AppData\Local\npm-cache\_logs\2026-05-10T19_37_15_572Z-debug-0.log

System Information

windows 11
node v24.15.0
npm 11.14.1

Additional Comments

No response

avatar brianteeman brianteeman - open - 10 May 2026
avatar joomla-cms-bot joomla-cms-bot - change - 10 May 2026
Labels Added: No Code Attached Yet bug
avatar joomla-cms-bot joomla-cms-bot - labeled - 10 May 2026
avatar CSGoat0
CSGoat0 - comment - 10 May 2026

Thank you, I wanted to open this one since the other one is merged but didn't want to ruin my current npm files again XD.

avatar brianteeman
brianteeman - comment - 11 May 2026

I have vibe coded something which appears to work but i am not submitting it as a pr as i dont understand it well enough

hopefully someone who does understand the js better than me is able to make use of it
https://github.com/joomla/joomla-cms/compare/6.2-dev...brianteeman:joomla-cms:chunk?expand=1

avatar chmst
chmst - comment - 15 May 2026

I have a solution from co-pilot.
A few lines only but I don't understand it and don't make a PR.
As it all worked well until 6.1 it should be possible to find the change which causes the problem.

avatar brianteeman
brianteeman - comment - 15 May 2026

@chmst the problem was caused by the complete change in the scripts for 6.2

avatar brianteeman
brianteeman - comment - 15 May 2026

@chmst the problem was caused by the complete change in the scripts for 6.2 with this untested pr #46879

Image
avatar richard67
richard67 - comment - 17 May 2026

Could you test PR #47789 ? Thanks in advance.

avatar LadySolveig
LadySolveig - comment - 17 May 2026

Found the issue, why the licence is missing. It is copied in the vendor step and cleaned up again in the builder itself. Thanks @Fedik for this missing peace. I will prepare to alternative PRs tomorrow, you can decide on.

avatar LadySolveig
LadySolveig - comment - 17 May 2026

Found the issue, why the licence is missing. It is copied in the vendor step and cleaned up again in the builder itself. Thanks @Fedik for this missing peace. I will prepare to alternative PRs tomorrow, you can decide on.

Add a Comment

Login with GitHub to post a comment