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

Error #6

Open
kenshinaru opened this issue May 20, 2024 · 6 comments
Open

Error #6

kenshinaru opened this issue May 20, 2024 · 6 comments

Comments

@kenshinaru
Copy link

(node:39) UnhandledPromiseRejectionWarning: ReferenceError: fetch is not defined
2024-05-20T03:44:46.418672+00:00 app[worker.1]: at sendRequest (/app/node_modules/prodia.js/dist/index.js:36:17)
2024-05-20T03:44:46.418673+00:00 app[worker.1]: at generateImageSDXL (/app/node_modules/prodia.js/dist/index.js:98:28)

@UnschooledGamer
Copy link
Member

UnschooledGamer commented May 20, 2024

Kindly give us additional information:

  • npm package version of prodia.js you're using.
  • Your NodeJs Version

@kenshinaru
Copy link
Author

  • npm prodia version = latest version(3.0.0)
  • Nodejs 14.

@UnschooledGamer
Copy link
Member

  • npm prodia version = latest version(3.0.0)
  • Nodejs 14.

Thanks for the information,
Please Update your NodeJs.

@kenshinaru
Copy link
Author

is that all? ummm btw my error message shows that there is variable fetch is not defined in your prodia.ts sir, please check it

@flameface
Copy link
Member

Install the LTS version of Node.js, as it includes node-fetch.

@kenshinaru
Copy link
Author

okay thanks you sir, and thanks for making this package 🙏

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

3 participants