yuko1101 / starrail.js

A Node.js Enka.Network API wrapper for Honkai: Star Rail.
https://starrail.vercel.app
MIT License
38 stars 4 forks source link

Browser throws error when requesting data #127

Closed eden-u closed 2 months ago

eden-u commented 2 months ago

I installed node-polyfills and defined dirname and filename

config

But because of using the getAllCharacters function, a path error occurred

app error

Is there any good way to make the path section error-free? I use Google Translate, please forgive my English, thank you

yuko1101 commented 2 months ago

Thanks for reporting this, but starrail.js should not be used on the frontend. Try using it on the backend or SSR instead.

eden-u commented 2 months ago

OK, thanks for the reply