Skip to content

fix: source map warnings and TS6059 errors in workspace setups - #311

Merged
arbrandes merged 2 commits into
openedx:mainfrom
arbrandes:arbrandes/fix-source-map-warnings
Aug 30, 2026
Merged

fix: source map warnings and TS6059 errors in workspace setups#311
arbrandes merged 2 commits into
openedx:mainfrom
arbrandes:arbrandes/fix-source-map-warnings

Conversation

@arbrandes

@arbrandes arbrandes commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Description

Two independent production build fixes.

source-map-loader warns for every dependency shipping a broken sourcemap - 9 warnings in frontend-template-site, none actionable by sites. ignoreWarnings silences them, leaving the loader in place so @openedx/frontend-app-* sourcemaps still resolve.

Separately, 8115f2a added rootDir to the root tsconfig.json for the CI typecheck. ts-loader reads that same config, so hoisted node_modules files fall outside rootDir and each raises TS6059 - over four thousand errors in a site's builds, which is what 28377f4 fixed in April. The typecheck gets its own config instead.

Fixes #310.

LLM usage notice

Built with assistance from Claude.

arbrandes and others added 2 commits August 30, 2026 11:42
Co-Authored-By: Claude <noreply@anthropic.com>
Reverts the rootDir added in 8115f2a, which reintroduced the TS6059
errors that 28377f4 fixed. The CI typecheck gets its own config instead.

Co-Authored-By: Claude <noreply@anthropic.com>
@arbrandes arbrandes changed the title fix: silence unparseable third-party source map warnings fix: source map warnings and TS6059 errors in workspace setups Aug 30, 2026
@arbrandes
arbrandes merged commit 0b914b1 into openedx:main Aug 30, 2026
5 checks passed
@arbrandes
arbrandes deleted the arbrandes/fix-source-map-warnings branch August 30, 2026 15:24
@openedx-semantic-release-bot

Copy link
Copy Markdown

🎉 This PR is included in version 2.0.0-alpha.11 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

source-map-loader runs over all of node_modules, producing spurious build warnings

2 participants