Skip to content

Docs build broken by @apify/ui-library >=1.120.0 (SSG M7 module resolution error) #607

@vdusek

Description

@vdusek

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.

Metadata

Metadata

Assignees

Labels

t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions