-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Custom extractor on Windows #75
Comments
It seems TypeScript file support is in a broken stage at this time and would need some changes (and potential redesign of how it is handled) For future reference: ts-node seems to not be able to properly hook into Node and the Node docs seem to indicate the proper hooks to bring things back is 20.6.x only, so that option is no longer viable. The direction to take is probably to do something similar to how Vite loads its config file: simply bundle the file ourselves using |
I'm not sure this issue is limited to TypeScript. Seems broken on Windows with a .js extractor as well. |
Broken on MacOS too |
Also ran into issue on macos and linux. Was able to work around this mess by converting the custom extractor to commonjs (note not ES module, so module.exports = ..., etc.). Only ran into this problem because the way to programatically delete keys is through running the sync command or writing our own script (not there yet thankfully). Quite a run around 🥴 |
Hello,
Whille running the following command on a Windows env
tolgee sync -e './libraries/common/react-emails/scripts/extractor.ts' './libraries/common/react-emails/**/*.ts?(x)'
I get the following error
I don't have any problem with the CLI on Windows otherwise
The text was updated successfully, but these errors were encountered: