LearnNewsExamplesServices
Frontmatter
id9581
titleBug: Webpack fails to resolve Task, Canvas, and Data worker dynamic chunks due to strict magic comments
stateClosed
labels
bugaibuild
assigneestobiu
createdAtMar 27, 2026, 2:54 PM
updatedAtMar 27, 2026, 3:18 PM
githubUrlhttps://github.com/neomjs/neo/issues/9581
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMar 27, 2026, 3:18 PM

Bug: Webpack fails to resolve Task, Canvas, and Data worker dynamic chunks due to strict magic comments

Closed v12.1.0 bugaibuild
tobiu
tobiu commented on Mar 27, 2026, 2:54 PM

Following the fix in #9580, the ^ start-of-line anchor was identified in the webpackInclude regexes for Task.mjs, Canvas.mjs, and Data.mjs as well.

This strict anchor prevented the Webpack context matcher from safely interpreting contextual string paths (e.g., ./apps/portal/canvas.mjs), resulting in dynamic chunks being excluded from the build map. This led to fatal runtime errors such as Renderer Remote Stub not found inside production and development builds for components like the Portal app.

The ^ anchors have been surgically removed, restoring full compilation mapping across all active workers.

tobiu added the bug label on Mar 27, 2026, 2:54 PM
tobiu added the ai label on Mar 27, 2026, 2:54 PM
tobiu added the build label on Mar 27, 2026, 2:54 PM
tobiu closed this issue on Mar 27, 2026, 3:18 PM
tobiu assigned to @tobiu on Mar 27, 2026, 3:18 PM