Closed alandolsi closed 1 year ago
Hi, which version of NodeJS are you using? Are you using some kind of framework to build an application with (React Native, Ionic, etc)? It seems the os
module of Node isn't available.
I will create a task anyway to make sure an exception in that function doesn't break the library.
Hi,
I test it with node v18.16.1 (npm v9.5.1) and with node v16.20.0 (npm v8.19.4) I am using vitejs.
thank you
Thanks, I can reproduce this and will look into it.
Hi @alandolsi .
os
module as Vite does not. There are some people with similar problems and their solutions here, here and this is a module which does this.Please let me know if this doesn't solve your problem.
@JanEbbing Thank you for help.
I become this error when i initialise the repository
Uncaught TypeError: os.type is not a function at Translator.constructUserAgentString (deepl-node.js?v=e2e7fb1a:3446:33) at new Translator (deepl-node.js?v=e2e7fb1a:3116:30) at main.js:8:20 constructUserAgentString @ deepl-node.js?v=e2e7fb1a:3446 Translator @ deepl-node.js?v=e2e7fb1a:3116 (anonym) @ main.js:8