Can't import custom plugin to front-end


version 2022.4 uses vite for running origam client. I’m trying to:

  1. Run my plugin using these commands
npm link

npm run start
  1. Run frontend with commands:
npm link "@myproject/mytest-screen-plugin"

npm run dev

I cannot load client in the browser because I see following error in console:

Uncaught SyntaxError: import not found: MyTestScreenPlugin

and in the source file I see this line:

import { MyTestScreenPlugin } from "/@fs/C:/Users/david.pochobradsky/Workspace/00_Origam/myproject/_origamPlugins/MyTestScreenPlugin/dist/index.js";

Am I missing something? Is there any change regarding plugin development?

Thank you,