Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix @nextcloud/l10n/gettext import #606

Merged
merged 2 commits into from
Oct 5, 2023
Merged

Fix @nextcloud/l10n/gettext import #606

merged 2 commits into from
Oct 5, 2023

Conversation

ShGKme
Copy link
Contributor

@ShGKme ShGKme commented Oct 5, 2023

Fix tsconfig moduleResolution

moduleResolution: node is for node v10 .. node v15 (while engine is node v20) and doesn't support package.json fields imports and exports

https://www.typescriptlang.org/tsconfig#moduleResolution

Fix l10n import

@nextcloud/l10n/dist/gettext.js is not the correct import according to its exports: https://github.com/nextcloud-libraries/nextcloud-l10n/blob/609525946917bb3613773415966e2536484e66fe/package.json#L7-L18

It results in an incorrect bundle where import { getGettextBuilder } from '@nextcloud/l10n/dist/gettext.js' doesn't work on build

How to test

Try to update to @nextcloud/vue@8 which uses @nextcloud/l10n@2, and build the server.
For example, here: #605

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
@ShGKme ShGKme added the bug Something isn't working label Oct 5, 2023
@ShGKme ShGKme added this to the Next patch milestone Oct 5, 2023
@ShGKme ShGKme requested review from susnux and Pytal October 5, 2023 10:41
@ShGKme ShGKme self-assigned this Oct 5, 2023
Copy link
Contributor

@JuliaKirschenheuter JuliaKirschenheuter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@susnux susnux merged commit 354abec into master Oct 5, 2023
5 checks passed
@susnux susnux deleted the fix/l10n-import branch October 5, 2023 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants