Skip to content

fix: extensionless imports so Turbopack builds the i18n strings subpath#33

Merged
Medformatik merged 1 commit into
mainfrom
fix/turbopack-strings-subpath-extensions
May 28, 2026
Merged

fix: extensionless imports so Turbopack builds the i18n strings subpath#33
Medformatik merged 1 commit into
mainfrom
fix/turbopack-strings-subpath-extensions

Conversation

@Medformatik

Copy link
Copy Markdown
Collaborator

Summary

The Build web Docker job on main broke after #32: the Next/Turbopack production build couldn't resolve ./src/resolver.js from the @openmapx/integration-framework/strings subpath (and ./useDataSourceI18nResolver.js in the place panel). tsc and vitest rewrite .js.ts, so check-types/vitest passed and the issue only surfaced in the web image build (pnpm build), which isn't run by those gates.

Fix: drop the .js extensions on .ts-source relative imports, matching the rest of the workspace (the parent package is extensionless, same as the earlier poi-source-registry Turbopack fix). Verified with a full local pnpm --filter web build (exit 0, 28 static pages generated).

…ngs subpath

The strings subpath (packages/integration-framework/strings) and the
DataSourceSections hook import used .js extensions on .ts sources. tsc and
vitest rewrite .js->.ts, but the Next/Turbopack production build (only run in
the web Docker image, not in check-types/vitest) cannot resolve them, breaking
`pnpm build`. Match the rest of the workspace (e.g. the parent package and the
prior poi-source-registry fix) by dropping the .js extensions.
@changeset-bot

changeset-bot Bot commented May 28, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: ff0f4ca

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@Medformatik
Medformatik merged commit 6e6c293 into main May 28, 2026
3 of 4 checks passed
@Medformatik
Medformatik deleted the fix/turbopack-strings-subpath-extensions branch May 28, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant