wix-pricing-plans Module

Hey Velo community,

Just wondering if it’s normal for the wix-pricing-plans module to have this error on import:
“Cannot find module ‘wix-pricing-plans’ or its corresponding type declarations”

I understand there’s both a front end and backend module and made sure I was importing the front end module on the page I needed it. Anyone else getting this error?

Thanks, DJ

Hi! Based on the error message, it seems that the wix-pricing-plans module is not installed or not properly installed on your project. You can try reinstalling the module and make sure that it is included in the dependencies of your project. If the issue persists, you can also try reaching out to the Wix support team for further assistance.

Hi, bamuu!

If I’m not mistaken, this module is included in Velo like wixLocation for example. It looks like I needed to import wixPricingPlans in addition to { orders }, like so:

import wixPricingPlans from 'wix-pricing-plans';

The error went away once I included that line above. I also have a ticket in with the dev team just in case they can provide further insight. Thank you for your response!

Per the documentation the way you imported in your OP should work. When you run the code did everything work as expected? It’s possible it was an error in the linter, but that everything was working as expected. Let me know so I can investigate further.

https://www.wix.com/velo/reference/wix-pricing-plans/orders/listcurrentmemberorders