You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a PNPM workspaces repository with the following structure
apps/
- frontend/
logic/
- core/
I've set up typesafe-i18n in my frontend package. From this package, I can usually import stuff in core using @my-repo/core.
However, the typesafe-i18n watcher does not seem able to work with this setup. Within my en/index.ts file I'm importing an enum from core in order to populate a set of translations corresponding to each enum entry. Here's an example:
Same issue with turborepo. But error msg for me looks like:
[typesafe-i18n] ERROR: import failed for .....node_modules/typesafe-i18n/temp-output/specs/0/de/index.js SyntaxError: Unexpected token 'export'
[typesafe-i18n] ERROR: could not read default export from base locale file 'de'
Version
5.26.2
Describe the bug
I have a PNPM workspaces repository with the following structure
I've set up
typesafe-i18n
in myfrontend
package. From this package, I can usually import stuff incore
using@my-repo/core
.However, the
typesafe-i18n
watcher does not seem able to work with this setup. Within myen/index.ts
file I'm importing an enum fromcore
in order to populate a set of translations corresponding to each enum entry. Here's an example:Here's the error I get:
Reproduction
pnpm-workspaces.yaml
:apps/frontend
logic/core
Logs
No response
Config
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: