portive / wysimark

The Wysiwyg Editor for Markdown: 100% CommonMark + GFM with Uploads and Image Resizing
Other
239 stars 41 forks source link

Console error `:first-child` unsafe #41

Open maarteNNNN opened 1 year ago

maarteNNNN commented 1 year ago

Description Getting an error in the console:

The pseudo class ":first-child" is potentially unsafe when doing server-side rendering. Try changing it to ":first-of-type".

Reproduction image

Steps

  1. Clone https://github.com/maarteNNNN/wysimark-quasar-test
  2. Run with npm run dev
  3. Open the page
  4. Open the console
  5. The error should be visible on load

Expectation It shouldn't throw the error.

Environment

thesunny commented 1 year ago

Thanks @maarteNNNN

For clarity, this is more like a warning from the emotion CSS library.

I will figure out a way to silence it but it doesn't seem to actually harm formatting the way we use it and the recommendation to switch to :first-of-type happens to be not valid for our use case unfortunately.