bloomreach / spa-sdk

Apache License 2.0
15 stars 16 forks source link

Issue with react and next #28

Closed MrSharpp closed 7 months ago

MrSharpp commented 7 months ago

I tried sample Br Cannot read properties of undefined (reading '$ref')

Then i thought i did something wrong, i cloned an example, it gave the same error.

also with this Same Here

0xdhrv commented 6 months ago

@MrSharpp do you know what is fix for this?

misl-smlz commented 6 months ago

@0xdhrv we ran into the same problem and had to add apiVersion: "1.0" to get the correct document back. without it, api version 0.9 is returned and the sdk fails with Cannot read properties of undefined (reading '$ref').

0xdhrv commented 5 months ago

@misl-smlz I didn't understand the apiVersion part, not sure where we add that parameter in <BrPage />

Thanks for the reply.