static-cms icon indicating copy to clipboard operation
static-cms copied to clipboard

In local backend on image widget, sometimes the string gets a "\r" addition

Open preetamslot opened this issue 1 year ago • 6 comments

I dont know why, but sometimes I get build errors on images, when I look at the md file I see that the image gets a "\r" added to the string.

preetamslot avatar Oct 08 '23 16:10 preetamslot

What OS are you running your local environment on?

KaneFreeman avatar Oct 10 '23 13:10 KaneFreeman

Windows 11 :(

preetamslot avatar Oct 11 '23 10:10 preetamslot

Please provide a sample of a markdown file where this occurred.

KaneFreeman avatar Oct 11 '23 14:10 KaneFreeman


Hi this is the output:
....
og_image: "/src/assets/og_image_nebulix.png\r"

Field:

 {
      label: t("og_image"),
      name: "og_image",
      widget: "image",
      required: false,
      hint: t("label_og_image"),
    },

Here the .md and the config https://github.com/unfolding-io/nebulix/blob/main/src/content/page/index.mdx https://github.com/unfolding-io/nebulix/blob/main/src/cms/page.mjs

preetamslot avatar Oct 15 '23 09:10 preetamslot

Are you only seeing this issue when using the proxy server locally? Does it work as expected when not using the proxy server?

KaneFreeman avatar Oct 25 '23 18:10 KaneFreeman

I only see the bug when I run the proxy server, did not have build errors on production.

preetamslot avatar Oct 31 '23 14:10 preetamslot