Hey everyone!
I have the following code for a Miro Plugin, built/running on vite:
import { EventModelType } from "@Models";
import { ShapeType } from "@mirohq/websdk-types";
export const SHAPE_TYPES: Record<EventModelType, ShapeType> = {
Event: ShapeType.Rectangle,
Command: ShapeType.RoundRectangle,
ReadModel: ShapeType.Parallelogram,
Processor: ShapeType.Rectangle,
GivenWhenThen: ShapeType.Rectangle
} as const
Problem is, no matter where in my code I try to import @mirohq/websdk-types, I’m getting an error when doing npm start:
[ERROR] Failed to resolve entry for package "@mirohq/websdk-types". The package may have incorrect main/module/exports specified in its package.json. [plugin vite:dep-scan]
The plugin "vite:dep-scan" was triggered by this import
src/Constants/ShapeTypes/ShapeTypes.ts:2:26:
2 │ import { ShapeType } from "@mirohq/websdk-types";
╵
Googling for it, I found this issue on GitHub. But nothing suggested there resolved the issue.
Any help would be appreciated 🙏