mantine icon indicating copy to clipboard operation
mantine copied to clipboard

RichTextEditor with Next.js

Open wildsonc opened this issue 3 years ago • 1 comments

What package has an issue

@mantine/rte

Describe the bug

Only when I paste (CMD+V) an image raise the error, even with strict mode disabled: image

next.config.js

/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: false,
};

module.exports = nextConfig;

If I insert the image through the button, it works as expected.

What version of @mantine/hooks page do you have in package.json?

5.2.5

If possible, please include a link to a codesandbox with the reproduced problem

Can reproduce in https://mantine.dev/others/rte/#images-upload

Do you know how to fix the issue

No

Are you willing to participate in fixing this issue and create a pull request with the fix

No response

Possible fix

No response

wildsonc avatar Sep 04 '22 20:09 wildsonc

I'm having this problem as well. Only when copy pasting images on latest NextJS version.

pauloendoh avatar Sep 12 '22 18:09 pauloendoh

Fixed on 5.4.1

wildsonc avatar Sep 27 '22 13:09 wildsonc