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

zod-i18n-map not working with i18next in es module #204

Open
juetan opened this issue May 14, 2024 · 2 comments
Open

zod-i18n-map not working with i18next in es module #204

juetan opened this issue May 14, 2024 · 2 comments

Comments

@juetan
Copy link

juetan commented May 14, 2024

Reproduction: https://stackblitz.com/edit/stackblitz-starters-vcpapm?file=index.js. just run node ./index.js.

in above, set package.json's type to module. index.js actually import i18next's esm version, but import zod-i18n-map's cjs version which import i18next's cjs version. the i18next is not the same

the solution would be: add exports field to zod-i18n-map's package.json, just like what i18next do.

i would like to make a pr.

@rhyek
Copy link

rhyek commented Jul 13, 2024

Just ran into this. Found a temporary fix (hack) here.

@taro-28
Copy link

taro-28 commented Jul 19, 2024

I am also having the same problem.

@juetan
May I make a PR instead?

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

No branches or pull requests

3 participants