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

Production build using svelte-i18n ^3.7.4 throws "Named export 'IntlMessageFormat' not found." #232

Open
oyvindo opened this issue Sep 7, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@oyvindo
Copy link

oyvindo commented Sep 7, 2023

Describe the bug
using ^3.7.4
I get the this message when building for production:
"Named export 'IntlMessageFormat' not found. The requested module 'intl-messageformat' is a CommonJS module, which may not support all module.exports as named exports."

To Reproduce
In whatever repo using svelte-i18n, run npm run build and npm run preview

I fixed the problem by installing intl-messageformat in my project ^10.5.1

@brunnerh
Copy link

brunnerh commented Sep 9, 2023

Related/reason:

@thibault60000
Copy link

I have the same issue. Dowgrade to previsous version solve the problem
(SSR false, Renderer false, TrailingSlash always, adapter-static)

@kefahi
Copy link

kefahi commented Sep 24, 2023

Facing the same issue, and had to install the more recent version of intl-messageformat as indicated by the issue reporter.

kyoshino added a commit to videomark/videomark.webdino.org that referenced this issue Sep 26, 2023
@jordevorstenbosch
Copy link

Also here to reconfirm this bug with 3.7.4. <3.7.3 doesn't have the issue.

@kaisermann kaisermann self-assigned this Oct 14, 2023
@kaisermann kaisermann added the bug Something isn't working label Oct 14, 2023
@kaisermann
Copy link
Owner

Could you try the 3.7.5-alpha.1 version?

@guildenstern70
Copy link

Could you try the 3.7.5-alpha.1 version?

Yes, it seems 3.7.5-alpha.1 fixes this bug.

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

No branches or pull requests

7 participants