Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: formApi.getValue is not a function #234

Open
danielkoch opened this issue Dec 3, 2021 · 0 comments
Open

Uncaught TypeError: formApi.getValue is not a function #234

danielkoch opened this issue Dec 3, 2021 · 0 comments

Comments

@danielkoch
Copy link

Expected Behaviour

CartPage is working correctly

Actual Behaviour

javascript stops on CartPage

Platform and Version

venia-2021.11.01

Sample Code that illustrates the problem

We implemented a CartPage based on this component/structure:
https://github.com/adobe/aem-cif-guides-venia/tree/venia-2021.11.01/ui.frontend/src/main/components/CartPage

We have the issue that by using the Quantity component from @magento/venia-ui (as you also do in your aem-cif-guides-venia project, at this line: https://github.com/adobe/aem-cif-guides-venia/blob/venia-2021.11.01/ui.frontend/src/main/components/CartPage/ProductListing/product.js#L120) we get the following error thrown out of the following component: https://github.com/magento/pwa-studio/blob/v8.0.0/packages/venia-ui/lib/components/CartPage/ProductListing/quantity.js#L12

Uncaught TypeError: formApi.getValue is not a function

formApi getValue

For us it looks like the React context from the used informed library is not available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant