Cannot read property 'startsWith' of undefined when pasting image

Hi,

I’m seeing the following error when pasting an image:

I did an “ipm clean” to remove extraneous modules.

can you please help?

This is the error I see in the console

get_console @ <embedded>:44150
<embedded>:44150 Fri Dec 10 2021 11:39:15 GMT-0800 (Pacific Standard Time)
<embedded>:44150 No note is found in _Templates notebook or any note with Template tag.
<embedded>:44150 TypeError: Cannot read property 'startsWith' of undefined
    at Object.test (/Users/sundararam/Dropbox (/Applications/Inkdrop.app/Contents/Resources/app.asar/Meta)/inkdrop/packages/embed/lib/providers/gist.js:25:14)
    at RemarkAnchor.render (/Users/sundararam/Dropbox (/Applications/Inkdrop.app/Contents/Resources/app.asar/Meta)/inkdrop/packages/embed/lib/remark-anchor.js:36:24)
    at gi (/Applications/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:182)
    at fi (/Applications/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:181)
    at Rj (/Applications/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:263)
    at Qj (/Applications/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:246)
    at Kj (/Applications/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:246)
    at yj (/Applications/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:239)
    at /Applications/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:123
    at exports.unstable_runWithPriority (/Applications/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/scheduler/cjs/scheduler.production.min.js:19)
    at cg (/Applications/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:122)
    at fg (/Applications/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:123)
    at gg (/Applications/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:122)
    at Mj (/Applications/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-dom/cjs/react-dom.production.min.js:240)
    at Object.notify (/Applications/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-redux/lib/utils/Subscription.js:25)
    at Subscription.notifyNestedSubs (/Applications/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-redux/lib/utils/Subscription.js:96)
    at Subscription.handleChangeWrapper (/Applications/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/react-redux/lib/utils/Subscription.js:101)
    at dispatch (/Applications/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/redux/lib/redux.js:305)
    at /Applications/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/redux-thunk/lib/index.js:14
    at browser-main.js:1
    at dispatch (/Applications/Inkdrop.app/Contents/Resources/app.asar/app/static/node_modules/redux/lib/redux.js:667)
    at browser-commons.js:1
get_console @ <embedded>:44150

Hi Sundar,

Thanks for the report.
Which plugins are you using?
Please let me know the output of ipm list.