Problem
The docs build (SSG) fails when @apify/ui-library is updated from 1.119.0 to 1.120.0+. This was discovered in the lock file maintenance PR #605 where it was updated to 1.121.0.
Error
TypeError: Cannot read properties of undefined (reading 'M7')
at Object.M7 (server.bundle.js:101183:72)
at 71698 (server.bundle.js:97923:148)
at __webpack_require__ (server.bundle.js:154639:31)
...
Root Cause
@apify/ui-library 1.120.0+ introduces a regression that causes a module resolution failure (M7 chunk) during Server-Side Generation (SSG) when the experimental Rspack bundler is enabled via @docusaurus/faster in docusaurus.config.js.
@apify/ui-library is a transitive dependency pulled in by @apify/docs-theme.
Workaround
@apify/ui-library is pinned to <1.120.0 using a resolutions field in website/package.json.
Resolution
Once @apify/ui-library fixes the SSG/Rspack compatibility issue, the resolution override should be removed.
Problem
The docs build (SSG) fails when
@apify/ui-libraryis updated from1.119.0to1.120.0+. This was discovered in the lock file maintenance PR #605 where it was updated to1.121.0.Error
Root Cause
@apify/ui-library1.120.0+ introduces a regression that causes a module resolution failure (M7chunk) during Server-Side Generation (SSG) when the experimental Rspack bundler is enabled via@docusaurus/fasterindocusaurus.config.js.@apify/ui-libraryis a transitive dependency pulled in by@apify/docs-theme.Workaround
@apify/ui-libraryis pinned to<1.120.0using aresolutionsfield inwebsite/package.json.Resolution
Once
@apify/ui-libraryfixes the SSG/Rspack compatibility issue, the resolution override should be removed.