Skip to content
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

err #526

Open
nublar12 opened this issue Oct 28, 2023 · 1 comment
Open

err #526

nublar12 opened this issue Oct 28, 2023 · 1 comment

Comments

@nublar12
Copy link

The code contains an error that in the node -fetch library, the error is this: node-fetch\src\index.js in C:\Users\josed\Desktop\proyectos\bot-nublar\node_modules\discord-backup\lib \index.js to a dynamic import() which is available in all CommonJS modules.
I was able to fix it using the following code
import("node-fetch").then(response => {
const node_fetch_1 = response.default;
At the beginning and at the end this would go:
}).catch(err=> {
console.error(err);
});
At least it gave me that error, just a warning in case it is an error in general.

@ghost
Copy link

ghost commented Oct 30, 2023

try : #501

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant