Open gabrielecirulli opened 7 months ago
Same issue here, moving back the client to frontend.
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