-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls #756
Comments
I figured out the reason. Typescript reasonably consider |
To be honest, i'm surprised no one has reported about it yet. This issue should affect everyone with |
I'm not 100% sure if this is your exact issue, but if you are using metro, you might need to add cjs support in your metro.config.js: https://github.com/ivanhofer/typesafe-i18n/blob/main/packages/adapter-react/examples/expo/metro.config.js#L11 |
Version
5.26.2
Describe the bug
I just made initial setup of
typesafe-i18n
, trying to build my project now and stumbled into 3 TS errorsReproduction
Logs
No response
Config
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: