edgestorejs / edgestore

https://edgestore.dev
369 stars 22 forks source link

Error when starting next-intl issue #48

Open Gabrieldsantos96 opened 2 months ago

Gabrieldsantos96 commented 2 months ago

index.mjs:23 Uncaught (in promise) EdgeStoreError: Failed to parse response. Make sure the api is correctly configured at http://localhost:3000/api/edgestore/init at handleError (index.mjs:23:15)

image

all things are setted, but i think im getting error because next-intl, since there's a [locale] folder, i suspect edgestore is not finding because of that, there's a working round for this ? btw i tried to put api folder inside and outside locale.

perfectbase commented 2 months ago

Hi @Gabrieldsantos96

I've never configured localization with it. So I don't have an example.

But I remember there was a PR to make it work with it.

Try to take a look at the network requests on the developer tools to find out what is the endpoint your app is trying to reach. Maybe you need to set the basepath in the edgestore configuration.

If you can make it work, please share the solution here. If not, let me know and I'll try to make an example app for it.

TheCypher commented 1 day ago

Hi @Gabrieldsantos96 did you ever solve this issue?