From bdfdfcfa8ccffedd275dfc74526619afdb750210 Mon Sep 17 00:00:00 2001 From: Aleksey Gurtovoy Date: Tue, 12 Nov 2024 18:59:13 -0600 Subject: [PATCH] fix: "attempted import" errors on registering component in server-side code --- .changeset/fifty-bikes-walk.md | 5 +++++ packages/runtime/src/controls/rich-text-v2/rich-text-v2.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/fifty-bikes-walk.md diff --git a/.changeset/fifty-bikes-walk.md b/.changeset/fifty-bikes-walk.md new file mode 100644 index 000000000..0a1d3a052 --- /dev/null +++ b/.changeset/fifty-bikes-walk.md @@ -0,0 +1,5 @@ +--- +"@makeswift/runtime": patch +--- + +fix: "attempted import" errors on registering component in server-side code diff --git a/packages/runtime/src/controls/rich-text-v2/rich-text-v2.ts b/packages/runtime/src/controls/rich-text-v2/rich-text-v2.ts index f8809a9c0..0d06c0b47 100644 --- a/packages/runtime/src/controls/rich-text-v2/rich-text-v2.ts +++ b/packages/runtime/src/controls/rich-text-v2/rich-text-v2.ts @@ -26,7 +26,7 @@ import { TextAlignPlugin } from '../../slate/TextAlignPlugin' import { BlockPlugin } from '../../slate/BlockPlugin' import { TypographyPlugin } from '../../slate/TypographyPlugin' import { InlineModePlugin } from '../../slate/InlineModePlugin' -import { toText } from '../../slate' +import { toText } from '../../slate/utils' import { RichTextV2Plugin, Plugin } from './plugin' import { RichTextV2Control } from './control'