Cannot find module 'backend/stripe' or its corresponding type declarations

Question:
I tried to implement web module for Stripe to use in Wix Automations Velo code.

The problem is in automation view when i try to test velo code for automation, it does not see any files in a backend folder.

What is strange, Wix sees that file in a backend folder when i preview the js file from the main view.

I have created stripe.jsw file in a “Backend” module and i try to use that in a Wix Automations Velo Code action, is it impossible to use web modules from “Backend” module in Velo code action in Wix Automations?

I think this might be an issue with the pop up editor. Best place to report this is customer care: Contact Wix

As a workaround after creating the automation file if you open it in the normal editor you’ll be able to import as normal. For example this code gives me no errors:

import { test } from "backend/test.jsw";

export const invoke = async () => {
  // Your code here
  const result = test();
  return {
      result
  }
};