-
-
Notifications
You must be signed in to change notification settings - Fork 416
Description
Overview of the issue
The ecosystem CI for storybook is catching some regression, I'm unsure if it's on compodoc's side or somewhere else.
5 hours ago a new asndbox was generated (it's automated every 24h):
storybookjs/sandboxes@1cedd2d
This shows us the change: compodoc was upgraded to:
https://github.com/compodoc/compodoc/releases/tag/1.1.27
Then our ecosystem CI tries to bootstrap storybook on top of the sandbox, as well as generate a storybook static build.
This fails:
https://app.circleci.com/pipelines/github/storybookjs/storybook/103879/workflows/2a8f97f7-0fc3-49e6-9a8e-978d431bb698/jobs/889804/parallel-runs/16?filterBy=FAILED
The full error:
1.1.27
TypeScript version used by Compodoc : 5.8.3
TypeScript version of current project : 5.9.2
Node.js version : v22.15.0
Operating system : Linux 6.8
[07:28:42] No configuration file found, switching to CLI flags.
[07:28:42] Using provided source folder
[07:28:42] Using tsconfig file : /tmp/storybook/sandbox/angular-cli-default-ts/tsconfig.json
[07:28:42] Including : /tmp/storybook/code/addons/vitest/template/stories/basics.stories.ts
[07:28:42] Including : /tmp/storybook/code/addons/vitest/template/stories/unhandled-errors.stories.ts
[07:28:42] TypeError: i18next.init is not a function
[07:28:42] Sorry, but there was a problem during parsing or generation of the documentation. Please fill an issue on github. (https://github.com/compodoc/compodoc/issues/new)
at makeError (/tmp/storybook/scripts/node_modules/execa/lib/error.js:59:13)
at handlePromise (/tmp/storybook/scripts/node_modules/execa/index.js:119:50)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async /tmp/storybook/scripts/combine-compodoc.ts:44:7
at async Promise.all (index 5)
at async run (/tmp/storybook/scripts/combine-compodoc.ts:40:21)
This is what line 40 of our combine-compodoc.ts looks like:
https://github.com/storybookjs/storybook/blob/b7c4b0bbaeffebfb07d3a8f47095d7303a1b1a10/scripts/combine-compodoc.ts#L45
Operating System, Node.js, npm, compodoc version(s)
1.1.27
TypeScript version used by Compodoc : 5.8.3
TypeScript version of current project : 5.9.2
Node.js version : v22.15.0
Operating system : Linux 6.8
Angular configuration, a package.json file in the root folder
Compodoc installed globally or locally ?
Locally
If possible sourcecode of the file where it breaks
I don't have a lot to go on, but I did a search for i18next.init in our codebases, and wasn't able to find anything, but it does show up in yours:
https://github.com/search?q=repo%3Acompodoc%2Fcompodoc%20i18next.init&type=code
If possible your terminal logs before the error
Link to the CI workflow log:
https://app.circleci.com/pipelines/github/storybookjs/storybook/103879/workflows/2a8f97f7-0fc3-49e6-9a8e-978d431bb698/jobs/889804/parallel-runs/16?filterBy=FAILED
Motivation for or Use Case
This is blocking Storybook's ecosystem CI, blocking releases.
Reproduce the error
This is essentially what the ecosystem CI does:
- Download the
after-storybookdir from the sandboxes repository. - Install dependencies
- Run the build-storybook command
Related issues
I did search for the error message before opening this ticket, but neither i18next.init nor a substring yielded any open issues.
Suggest a Fix
Sorry, that's out of my depth.
I'd be happy to make tweaks to our ecosystem CI setup if that helps work out what the problem is.