Replies: 2 comments 1 reply
-
Where are the errors? what are they? |
Beta Was this translation helpful? Give feedback.
-
EXPAND TO SEE LOGS OF ERRORS:... in browser consoleindex.tsx:606 Uncaught TypeError: Cannot read properties of undefined (reading 'state')
at RichMarkdownEditor.value (index.tsx:606)
at index.tsx:613
at Object.onChange (App.js:92)
at RichMarkdownEditor.handleChange (index.tsx:612)
at EditorView.dispatchTransaction (index.tsx:562)
at EditorView.dispatch (index.js:374)
at Object.view (Folding.tsx:20)
at EditorView.updatePluginViews (index.js:208)
at new EditorView (index.js:69)
at RichMarkdownEditor.createView (index.tsx:540)
RichMarkdownEditor.value @ index.tsx:606
(anonymous) @ index.tsx:613
onChange @ App.js:92
RichMarkdownEditor.handleChange @ index.tsx:612
dispatchTransaction @ index.tsx:562
dispatch @ index.js:374
view @ Folding.tsx:20
updatePluginViews @ index.js:208
EditorView @ index.js:69
createView @ index.tsx:540
init @ index.tsx:305
componentDidMount @ index.tsx:221
commitLifeCycles @ react-dom.development.js:20663
commitLayoutEffects @ react-dom.development.js:23426
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
commitRootImpl @ react-dom.development.js:23151
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
commitRoot @ react-dom.development.js:22990
performSyncWorkOnRoot @ react-dom.development.js:22329
(anonymous) @ react-dom.development.js:11327
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
flushSyncCallbackQueueImpl @ react-dom.development.js:11322
flushSyncCallbackQueue @ react-dom.development.js:11309
scheduleUpdateOnFiber @ react-dom.development.js:21893
dispatchAction @ react-dom.development.js:16139
(anonymous) @ App.js:28
Promise.then (async)
(anonymous) @ App.js:22
invokePassiveEffectCreate @ react-dom.development.js:23487
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
flushPassiveEffectsImpl @ react-dom.development.js:23574
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
flushPassiveEffects @ react-dom.development.js:23447
(anonymous) @ react-dom.development.js:23324
workLoop @ scheduler.development.js:417
flushWork @ scheduler.development.js:390
performWorkUntilDeadline @ scheduler.development.js:157
react-dom.development.js:20085 The above error occurred in the component:
at RichMarkdownEditor (http://localhost:3000/static/js/bundle.js:114743:5)
at div
at Column (http://localhost:3000/static/js/bundle.js:175:5)
at div
at div
at App (http://localhost:3000/static/js/bundle.js:98:63)
at Provider (http://localhost:3000/static/js/bundle.js:99814:20)
Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.
logCapturedError @ react-dom.development.js:20085
update.callback @ react-dom.development.js:20118
callCallback @ react-dom.development.js:12318
commitUpdateQueue @ react-dom.development.js:12339
commitLifeCycles @ react-dom.development.js:20736
commitLayoutEffects @ react-dom.development.js:23426
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
commitRootImpl @ react-dom.development.js:23151
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
commitRoot @ react-dom.development.js:22990
performSyncWorkOnRoot @ react-dom.development.js:22329
(anonymous) @ react-dom.development.js:11327
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
flushSyncCallbackQueueImpl @ react-dom.development.js:11322
flushSyncCallbackQueue @ react-dom.development.js:11309
scheduleUpdateOnFiber @ react-dom.development.js:21893
dispatchAction @ react-dom.development.js:16139
(anonymous) @ App.js:28
Promise.then (async)
(anonymous) @ App.js:22
invokePassiveEffectCreate @ react-dom.development.js:23487
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
flushPassiveEffectsImpl @ react-dom.development.js:23574
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
flushPassiveEffects @ react-dom.development.js:23447
(anonymous) @ react-dom.development.js:23324
workLoop @ scheduler.development.js:417
flushWork @ scheduler.development.js:390
performWorkUntilDeadline @ scheduler.development.js:157
index.tsx:606 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'state')
at RichMarkdownEditor.value (index.tsx:606)
at index.tsx:613
at Object.onChange (App.js:92)
at RichMarkdownEditor.handleChange (index.tsx:612)
at EditorView.dispatchTransaction (index.tsx:562)
at EditorView.dispatch (index.js:374)
at Object.view (Folding.tsx:20)
at EditorView.updatePluginViews (index.js:208)
at new EditorView (index.js:69)
at RichMarkdownEditor.createView (index.tsx:540)
RichMarkdownEditor.value @ index.tsx:606
(anonymous) @ index.tsx:613
onChange @ App.js:92
RichMarkdownEditor.handleChange @ index.tsx:612
dispatchTransaction @ index.tsx:562
dispatch @ index.js:374
view @ Folding.tsx:20
updatePluginViews @ index.js:208
EditorView @ index.js:69
createView @ index.tsx:540
init @ index.tsx:305
componentDidMount @ index.tsx:221
commitLifeCycles @ react-dom.development.js:20663
commitLayoutEffects @ react-dom.development.js:23426
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
commitRootImpl @ react-dom.development.js:23151
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
commitRoot @ react-dom.development.js:22990
performSyncWorkOnRoot @ react-dom.development.js:22329
(anonymous) @ react-dom.development.js:11327
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
flushSyncCallbackQueueImpl @ react-dom.development.js:11322
flushSyncCallbackQueue @ react-dom.development.js:11309
scheduleUpdateOnFiber @ react-dom.development.js:21893
dispatchAction @ react-dom.development.js:16139
(anonymous) @ App.js:28
Promise.then (async)
(anonymous) @ App.js:22
invokePassiveEffectCreate @ react-dom.development.js:23487
callCallback @ react-dom.development.js:3945
invokeGuardedCallbackDev @ react-dom.development.js:3994
invokeGuardedCallback @ react-dom.development.js:4056
flushPassiveEffectsImpl @ react-dom.development.js:23574
unstable_runWithPriority @ scheduler.development.js:468
runWithPriority$1 @ react-dom.development.js:11276
flushPassiveEffects @ react-dom.development.js:23447
(anonymous) @ react-dom.development.js:23324
workLoop @ scheduler.development.js:417
flushWork @ scheduler.development.js:390
performWorkUntilDeadline @ scheduler.development.js:157
react-dom.development.js:67 Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method.
at RichMarkdownEditor (http://localhost:3000/static/js/bundle.js:114743:5)
at div
at Column (http://localhost:3000/static/js/bundle.js:175:5)
at div
at div
at App (http://localhost:3000/static/js/bundle.js:98:63)
at Provider (http://localhost:3000/static/js/bundle.js:99814:20)
... errors in terminalCompiled with warnings. Here's the repo of the apphttps://github.com/maiya-22/app-draft app structure
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I love the rich-mardown-editor. The styling is great, etc.
But I keep getting errors in the markdown string, after I save it and try to reload with the new string. I look at the strings in the database and try to figure out where the error is coming from, but it's not something that I can see. I want to solve this, so that I can feel comfortable writing and saving things.
Is there some kind of markdown validation that people use, to make sure that their strings are being saved properly and avoid these kinds of errors before they happen?
Thank you for any pointers 💫.
Beta Was this translation helpful? Give feedback.
All reactions