undefined preview
See original GitHub issueUsing 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.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:7 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.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.