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

[vite] Error when evaluating SSR module, failed to import "@tolgee/format-icu" #3275

Closed
hasagen opened this issue Nov 2, 2023 · 5 comments · Fixed by #3276
Closed

[vite] Error when evaluating SSR module, failed to import "@tolgee/format-icu" #3275

hasagen opened this issue Nov 2, 2023 · 5 comments · Fixed by #3276

Comments

@hasagen
Copy link

hasagen commented Nov 2, 2023

Hi, guys!
I have such an issue with vite and tolgee packages (@lolgee/react and @tolgee/format-icu in my case)

image

So I have to create patches like this to make Tolgee work correctly.
image

So i've change .js to .mjs format.
Please check

@stepan662
Copy link
Collaborator

Hey, how do I replicate your setup? (please include node and VITE versions).

@hasagen
Copy link
Author

hasagen commented Nov 2, 2023

of course, node -v 18.12.1 + vite 4.5.0

@stepan662
Copy link
Collaborator

And how did you setup the SSR, I see there are multiple ways how to create a vite project with SSR, as the native implementation is very bare-bone.

@stepan662 stepan662 linked a pull request Nov 2, 2023 that will close this issue
@stepan662
Copy link
Collaborator

Anyway, I've done a revision of the exports and I think it should fix your problem. Could you test version prerelease.f75e0f30.0?

@hasagen
Copy link
Author

hasagen commented Nov 3, 2023

You're right, I actually didn't think that SSR realization could be the reason.
Anyway, I've checked prerelease and the problem solved. Thank you very much!

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 a pull request may close this issue.

2 participants