Coder Social home page Coder Social logo

Comments (5)

ndimatteo avatar ndimatteo commented on May 28, 2024 2

Alright @GLips and @eghernqvist, I got this sorted!

You'll want to be on the latest studio versions: ^2.19.0 (this includes the new styled-components depedency)

That, plus the update here (1.1.2) will allow you to use Note fields without issue.

One notable change is if you plan to include HTML in your note message you will need to rewrite these from strings to JSX. I've updated the second example in the readme with how to do this.

from sanity-plugin-note-field.

ndimatteo avatar ndimatteo commented on May 28, 2024 1

Hey there @GLips I looked into this further and I found that Sanity pushed some breaking UI updates with their <Text /> component (see here).

I pushed up a fix in version 1.1.2 that should at least resolve this conflict causing studios to crash, but just a heads up: it seems there are now issues around using HTML in your Note message.

I'm working with the Sanity team to figure out a solution there, but for basic note messages you should be all set 🤘

from sanity-plugin-note-field.

ndimatteo avatar ndimatteo commented on May 28, 2024

Hey there @eghernqvist I don't think this is an issue with the Note Field plugin, or a conflict with the Color Input plugin.

In HULL, we use both of these fields without issue (https://github.com/ndimatteo/HULL/blob/main/studio/sanity.json#L13), which tells me this is some other issue in your setup.

The error you're getting implies some component might be trying to set its contents with dangerouslySetInnerHTML and has children.

from sanity-plugin-note-field.

GLips avatar GLips commented on May 28, 2024

Hey @ndimatteo, we don't have the color input plugin installed on our version, but are also getting the same error message from the note plugin. It's just cropped up recently—was working fine before.

I'm digging a bit deeper into the issue to see if I can figure it out, but I'm pretty sure it's coming from this plugin.

from sanity-plugin-note-field.

GLips avatar GLips commented on May 28, 2024

Right on @ndimatteo. That's amazing.

Love your work on HULL btw. Served as inspiration for a current project.

from sanity-plugin-note-field.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.