I am getting this error on Mobile, more specific on Safari on iPhone 11 Unhandled Promise Rejection: Error: Add the URL of your WordPress REST API in state.source.api. The thing is that this happens on mobile only, so i am a bit confusedā¦
It seems to be a problem with the implementation we did to deprecate the URL constructor that we exported from frontity:
For some reason, it doesnāt work well in Safari (tested in version 13.1.2) and it throws an error, making the code to fail in the init() action of @frontity/wp-source and showing the error you mentioned.
I opened an issue in order to fix this (frontity/frontity#565). In the meantime, it should work fine using the previous version of frontity (1.10.1).
Weāll keep you posted!
EDIT: We already find a solution and we are going to publish a new version today! You can wait for the new version of frontity instead of installing the previous one
We have just released a new version with the fix. If you update the project following this guide, the problem should be solved. Let us know if you keep having that error.
Of course, this struck me right as I was making the first production release. The new fix solved this. Thank you guys for your hard and appreciated work! @luisherranz@SantosGuillamot and everyone else on the Frontity team.