Open spencersmb opened 11 months ago
This is affecting me too - and the app won't load with React 18 either. When can we expect to see a stabler version/update to React 18?
I'm also facing the same issue, got any workarounds yet?
@murshid-valar It's working for me on version ^0.13.5
of @shopify/post-purchase-ui-extensions-react
Please list the package(s) involved in the issue, and include the version you are using
Using the Shopify CLI to create an app and then adding an app extension to it, specifically the post-purchase-ui template. After adding any hook to the component the entire app fails.
App: "@shopify/app": "3.51.2", "@shopify/cli": "3.51.2", "jsonwebtoken": "^9.0.2", "uuid": "^9.0.1"
Extension (post-purchase-ui): "react": "^17.0.0", "@shopify/post-purchase-ui-extensions-react": "^0.13.4" (also tried version: 0.13.2)
Describe the bug
After install and connecting the extension to my development shop, and adding a useState hook to the component to render, the ui breaks and you can see this error in the chrome console.
Steps to reproduce the behavior:
export function App({ extensionPoint, storage }) { const [loading, setLoading] = useState(true) // line 65 in VS-Code