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
{{ message }}
Repository navigation
Unable to import module from across PNPM workspace #762
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'
Activity
PaHell commentedon Aug 22, 2024
Same issue here, moving back the client to frontend.
dmitryzhorovPb commentedon Nov 4, 2024
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'