Facing “Cannot find module 'interfaces-ecommerce-v1-validations-provider'” in eCommerce Validation Plugin

Hi everyone,

I’m working with the eCommerce Validations service plugin in Wix Studio, following the official Wix tutorial. I’ve successfully enabled Dev Mode, created a validation plugin (via the Service Plugins → eCommerce Validation path), and it auto-generated the two required files:

  • checkoutValidation.js
  • checkoutValidation-config.js

In checkoutValidation.js, I’m trying to import the validation provider module as instructed:

js

CopyEdit

import * as ecomValidations from 'interfaces-ecommerce-v1-validations-provider';

However, I’m consistently getting the following error in the IDE:

:cross_mark: Cannot find module ‘interfaces-ecommerce-v1-validations-provider’ or its corresponding type declaration.

I did not create these files manually — they were generated through the standard Service Plugin creation flow. I’ve also tried deleting and recreating the plugin from scratch, but the error persists.

Has anyone else run into this issue recently? Is there a workaround or something else I should check in the Wix Studio environment?

Any help would be appreciated!

Thanks :folded_hands:

Yes this error does show up initially, and the red line will remain, but it should work without any flaws. If you keep the console open at the time of publishing, it will show a message if the SPI has any errors, for eg: Your site was published with errors in the XYZ Service Plugin. This is when the code in the SPI actually has some kind of error which was caught by the compiler.

Else, it will show something like Your site was published with updates to the XYZ Service Plugin. If this is what you see, then you don’t need to worry. Test out the functionality - it should be working as expected.

1 Like

Thank you so much for the reply!!

1 Like