question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

undefined preview

See original GitHub issue

Using react 18.0.0 & react-simplemde-editor 5.0.2 and having an odd error where all I’m shown is undefined in the editor when I toggle to preview mode. Toggling the editor back to edit/normal mode brings back the writing I’ve put into the editor.

import SimpleMDE from "react-simplemde-editor";
import "easymde/dist/easymde.min.css";

interface NewArticleProps {
  updatePageHeader: (header:string) => void
}

export default function NewArticle({updatePageHeader}:NewArticleProps) {

  return (
    <SimpleMDE />
  )
}

As you can see it’s essentially a default install, tried placing the component at various levels to watch for any difference but have been unsuccessful. Also there are no errors reported in the browser/react console.

image image

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
bencinterlinkcommented, Apr 26, 2022

Update: Just discovered installing easymde@2.16.0 or earlier (as a peer dependency as instructed by README) doesn’t result in this error so possibly either a conflict between recent version of easymde or an issue with easymde itself.

1reaction
RIP21commented, Apr 26, 2022

Hey. I’ll plan to revisit this codebase to check how it works with react 18 etc in recent future and to update package version to include some recent fixes some people introduced.

Regarding issue, prob issues with easymde. Will double check that too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Undefined error when preview on external browser #2 - GitHub
It works fine to preview inside VS Code, but if I set preview on external browser, the error notification pop up: Unable to...
Read more >
Google preview slug marked as “undefined” - WordPress.org
I just realized I have an issue with the preview snippet. It doesn't take into account the slug entered as the post or...
Read more >
Stream Undefined (Preview) by ZILIZIUM | Listen online for free on ...
Stream Undefined (Preview) by ZILIZIUM on desktop and mobile. Play over 265 million tracks for free on SoundCloud.
Read more >
Enum Undefined | Package Validation Suite | 0.33.0-preview
Package Validation Suite 0.33.0-preview ... Enum Undefined. Namespace: PureFileValidationPvp. Syntax. public enum Undefined ...
Read more >
Undefined function 'preview' for input arguments of type 'struct ...
Undefined function 'preview' for input... Learn more about matlab, frame differential method.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found