-
Notifications
You must be signed in to change notification settings - Fork 22
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
Circular dependency index.js ➜ parsing.js ➜ index.js #43
Comments
Hi, could you provide more detailed steps how to reproduce this? I just did the following (with node v18.18.2 and deepl-node v1.13.0) in a new directory:
import * as deepl from 'deepl-node';
// See https://kit.svelte.dev/docs/types#app
// for information about these interfaces
declare global {
namespace App {
// interface Error {}
// interface Locals {}
// interface PageData {}
// interface PageState {}
// interface Platform {}
}
}
async function translate() {
let t = deepl.Translator('auth_key');
let result = await t.translateText('sample text', null, 'de');
return result;
}
export {};
And I dont get this warning. |
Hi, I don't have access to my code right now, but it didn't show up on a dev server, only on a full prod build ( |
Ah sorry, I didn't get that it's just a warning. I agree, we should move a bunch of definitions into |
Sorry about the wording, thanks! |
Describe the bug
When building my Svelte app that uses deepl-node, I get a warning about circular dependencies:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The warning not to appear by refactoring your code
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: