amdecker / obsidian-argdown-plugin

MIT License
69 stars 2 forks source link

Argdown map does not render #16

Open JanPastorek opened 1 year ago

JanPastorek commented 1 year ago

Win11 Obsidian v1.3.7

I get these 5 erros in the console:

  1. DevTools failed to load source map: Could not load content for app://obsidian.md/SyncDotToSvgExportPlugin.js.map: System error: net::ERR_FILE_NOT_FOUND data:text/javascript…rgdown-map.js.map:1

  2. Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "argdown-map" has already been used with this registry at parcelRequire.uXi1.lit-html (data:text/javascript;charset=utf-8,parcelRequire%3Dfunction(e%2Cr%2Ct%2Cn)%7Bvar%20i%2Co%3D%22function%22%3D%3Dtypeof%20parcelRequire%26%26parcelRequire%2Cu%3D%22function%22%3D%3Dtypeof%20require%26%26require%3Bfunction%20f(t%2Cn)%7Bif(!r%5Bt%5D)%7Bif(!e%5Bt%5D)%7Bvar%20i%3D%22function%22%3D%3Dtypeof%20parcelRequire%26%26parcelRequire%3Bif(!n%26%26i)return%20i(t%2C!0)%3Bif(o)return%20o(t%2C!0)%3Bif(u%26%26%22string%22%3D%3Dtypeof%20t)return%20u(t)%3Bvar%20c%3Dnew%20Error(%22Cannot%20find%20module%20'%22%2Bt%2B%22'%22)%3Bthrow%20c.code%3D%22MODULE_NOT_FOUND%22%2Cc%7Dp.resolve%3Dfunction(r)%7Breturn%20e%5Bt%5D%5B1%5D%5Br%5D%7C%7Cr%7D%2Cp.cache%3D%7B%7D%3Bvar%20l%3Dr%5Bt%5D%3Dnew%20f.Module(t)%3Be%5Bt%5D%5B0%5D.call(l.exports%2Cp%2Cl%2Cl.exports%2Cthis)%7Dreturn%20r%5Bt%5D.exports%3Bfunction%20p(e)%7Breturn%20f(p.resolve(e))%7D%7Df.isParcelRequire%3D!0%2Cf.Module%3Dfunction(e)%7Bthis.id%3De%2Cthis.bundle%3Df%2Cthis.exports%3D%7B%7D%7D%2Cf.modules%3De%2Cf.cache%3Dr%2Cf.parent%3Do%2Cf.register%3Dfunction(r%2Ct)%7Be%5Br%5D%3D%5Bfunction(e%2Cr)%7Br.exports%3Dt%7D%2C%7B%7D%5D%7D%3Bfor(var%20c%3D0%3Bc%3Ct.length%3Bc%2B%2B)try%7Bf(t%5Bc%5D)%7Dcatch(e)%7Bi%7C%7C(i%3De)%7Dif(t.length)%7Bvar%20l%3Df(t%5Bt.length-1%5D)%3B%22object%22%3D%3Dtypeof%20exports%26%26%22undefined%22!%3Dtypeof%20module%3Fmodule.exports%3Dl%3A%22function%22%3D%3Dtypeof%20define%26%26define.amd%3Fdefine(function()%7Breturn%20l%7D)%3An%26%26(this%5Bn%5D%3Dl)%7Dif(parcelRequire%3Df%2Ci)throw%20i%3Breturn%20f%7D(%7B%22uWh2%22%3A%5Bfunction(require%2Cmodule%2Cexports)%20%7B%0A%22use%20strict%22%3BObject.defineProperty(exports%2C%22esModule%22%2C%7Bvalue%3A!0%7D)%2Cexports.isDirective%3Dexports.directive%3Dvoid%200%3Bconst%20e%3Dnew%20WeakMap%2Ct%3Dt%3D%3E(...s)%3D%3E%7Bconst%20i%3Dt(...s)%3Breturn%20e.set(i%2C!0)%2Ci%7D%3Bexports.directive%3Dt%3Bconst%20s%3Dt%3D%3E%22function%22%3D%3Dtypeof%20t%26%26e.has(t)%3Bexports.isDirective%3Ds%3B%0A%7D%2C%7B%7D%5D%2C%22ytxR%22%3A%5Bfunction(require%2Cmodule%2Cexports)%20%7B%0A%22use%20strict%22%3BObject.defineProperty(exports%2C%22esModule%22%2C%7Bvalue%3A!0%7D)%2Cexports.removeNodes%3Dexports.reparentNodes%3Dexports.isCEPolyfill%3Dvoid%200%3Bconst%20e%3D%22undefined%22!%3Dtypeof%20window%26%26null!%3Dwindow.customElements%26%26void%200!%3D%3Dwindow.customElements.polyfillWrapFlushCallback%3Bexports.isCEPolyfill%3De%3Bconst%20o%3D(e%2Co%2Cl%3Dnull%2Cs%3Dnull)%3D%3E%7Bfor(%3Bo!%3D%3Dl%3B)%7Bconst%20l%3Do.nextSibling%3Be.insertBefore(o%2Cs)%2Co%3Dl%7D%7D%3Bexports.reparentNodes%3Do%3Bconst%20l%3D(e%2Co%2Cl%3Dnull)%3D%3E%7Bfor(%3Bo!%3D%3Dl%3B)%7Bconst%20l%3Do.nextSibling%3Be.removeChild(o)%2Co%3Dl%7D%7D%3Bexports.removeNodes%3Dl%3B%0A%7D%2C%7B%7D%5D%2C%22pnLb%22%3A%5Bfunction(require%2Cmodule%2Cexports)%20%7B%0A%22use%20strict%22%3BObject.defineProperty(exports%2C%22esModule%22%2C%7Bvalue%3A!0%7D)%2Cexports.nothing%3Dexports.noChange%3Dvoid%200%3Bconst%20e%3D%7B%7D%3Bexports.noChange%3De%3Bconst%20o%3D%7B%7D%3Bexports.nothing%3Do%3B%0A%7D%2C%7B%7D%5D%2C%22Av0K%22%3A%5Bfunction(require%2Cmodule%2Cexports)%20%7B%0A%22use%20strict%22%3BObject.defineProperty(exports%2C%22esModule%22%2C%7Bvalue%3A!0%7D)%2Cexports.lastAttributeNameRegex%3Dexports.createMarker%3Dexports.isTemplatePartActive%3Dexports.Template%3Dexports.boundAttributeSuffix%3Dexports.markerRegex%3Dexports.nodeMarker%3Dexports.marker%3Dvoid%200%3Bconst%20e%3D%60%7B%7Blit-%24%7BString(Math.random()).slice(2)%7D%7D%7D%60%3Bexports.marker%3De%3Bconst%20t%3D%60%5Cx3c!--%24%7Be%7D--%5Cx3e%60%3Bexports.nodeMarker%3Dt%3Bconst%20r%3Dnew%20RegExp(%60%24%7Be%7D%7C%24%7Bt%7D%60)%3Bexports.markerRegex%3Dr%3Bconst%20s%3D%22%24lit%24%22%3Bexports.boundAttributeSuffix%3Ds%3Bclass%20o%7Bconstructor(t%2Co)%7Bthis.parts%3D%5B%5D%2Cthis.element%3Do%3Bconst%20i%3D%5B%5D%2Cl%3D%5B%5D%2Cp%3Ddocument.createTreeWalker(o.content%2C133%2Cnull%2C!1)%3Blet%20c%3D0%2Cd%3D-1%2Cu%3D0%3Bconst%7Bstrings%3Af%2Cvalues%3A%7Blength%3Ah%7D%7D%3Dt%3Bfor(%3Bu%3Ch%3B)%7Bconst%20t%3Dp.nextNode()%3Bif(null!%3D%3Dt)%7Bif(d%2B%2B%2C1%3D%3D%3Dt.nodeType)%7Bif(t.hasAttributes())%7Bconst%20e%3Dt.attributes%2C%7Blength%3Ao%7D%3De%3Blet%20i%3D0%3Bfor(let%20t%3D0%3Bt%3Co%3Bt%2B%2B)n(e%5Bt%5D.name%2Cs)%26%26i%2B%2B%3Bfor(%3Bi--%20%3E0%3B)%7Bconst%20e%3Df%5Bu%5D%2Co%3Dx.exec(e)%5B2%5D%2Cn%3Do.toLowerCase()%2Bs%2Ci%3Dt.getAttribute(n)%3Bt.removeAttribute(n)%3Bconst%20a%3Di.split(r)%3Bthis.parts.push(%7Btype%3A%22attribute%22%2Cindex%3Ad%2Cname%3Ao%2Cstrings%3Aa%7D)%2Cu%2B%3Da.length-1%7D%7D%22TEMPLATE%22%3D%3D%3Dt.tagName%26%26(l.push(t)%2Cp.currentNode%3Dt.content)%7Delse%20if(3%3D%3D%3Dt.nodeType)%7Bconst%20o%3Dt.data%3Bif(o.indexOf(e)%3E%3D0)%7Bconst%20e%3Dt.parentNode%2Cl%3Do.split(r)%2Cp%3Dl.length-1%3Bfor(let%20r%3D0%3Br%3Cp%3Br%2B%2B)%7Blet%20o%2Ci%3Dl%5Br%5D%3Bif(%22%22%3D%3D%3Di)o%3Da()%3Belse%7Bconst%20e%3Dx.exec(i)%3Bnull!%3

  3. VM318 plugin:obsidia…rgdown-plugin:39145 Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "argdown-map" has already been used with this registry at parcelRequire.uXi1.lit-html (data:text/javascript;charset=utf-8,parcelRequire%3Dfunction(e%2Cr%2Ct%2Cn)%7Bvar%20i%2Co%3D%22function%22%3D%3Dtypeof%20parcelRequire%26%26parcelRequire%2Cu%3D%22function%22%3D%3Dtypeof%20require%26%26require%3Bfunction%20f(t%2Cn)%7Bif(!r%5Bt%5D)%7Bif(!e%5Bt%5D)%7Bvar%20i%3D%22function%22%3D%3Dtypeof%20parcelRequire%26%26parcelRequire%3Bif(!n%26%26i)return%20i(t%2C!0)%3Bif(o)return%20o(t%2C!0)%3Bif(u%26%26%22string%22%3D%3Dtypeof%20t)return%20u(t)%3Bvar%20c%3Dnew%20Error(%22Cannot%20find%20module%20'%22%2Bt%2B%22'%22)%3Bthrow%20c.code%3D%22MODULE_NOT_FOUND%22%2Cc%7Dp.resolve%3Dfunction(r)%7Breturn%20e%5Bt%5D%5B1%5D%5Br%5D%7C%7Cr%7D%2Cp.cache%3D%7B%7D%3Bvar%20l%3Dr%5Bt%5D%3Dnew%20f.Module(t)%3Be%5Bt%5D%5B0%5D.call(l.exports%2Cp%2Cl%2Cl.exports%2Cthis)%7Dreturn%20r%5Bt%5D.exports%3Bfunction%20p(e)%7Breturn%20f(p.resolve(e))%7D%7Df.isParcelRequire%3D!0%2Cf.Module%3Dfunction(e)%7Bthis.id%3De%2Cthis.bundle%3Df%2Cthis.exports%3D%7B%7D%7D%2Cf.modules%3De%2Cf.cache%3Dr%2Cf.parent%3Do%2Cf.register%3Dfunction(r%2Ct)%7Be%5Br%5D%3D%5Bfunction(e%2Cr)%7Br.exports%3Dt%7D%2C%7B%7D%5D%7D%3Bfor(var%20c%3D0%3Bc%3Ct.length%3Bc%2B%2B)try%7Bf(t%5Bc%5D)%7Dcatch(e)%7Bi%7C%7C(i%3De)%7Dif(t.length)%7Bvar%20l%3Df(t%5Bt.length-1%5D)%3B%22object%22%3D%3Dtypeof%20exports%26%26%22undefined%22!%3Dtypeof%20module%3Fmodule.exports%3Dl%3A%22function%22%3D%3Dtypeof%20define%26%26define.amd%3Fdefine(function()%7Breturn%20l%7D)%3An%26%26(this%5Bn%5D%3Dl)%7Dif(parcelRequire%3Df%2Ci)throw%20i%3Breturn%20f%7D(%7B%22uWh2%22%3A%5Bfunction(require%2Cmodule%2Cexports)%20%7B%0A%22use%20strict%22%3BObject.defineProperty(exports%2C%22esModule%22%2C%7Bvalue%3A!0%7D)%2Cexports.isDirective%3Dexports.directive%3Dvoid%200%3Bconst%20e%3Dnew%20WeakMap%2Ct%3Dt%3D%3E(...s)%3D%3E%7Bconst%20i%3Dt(...s)%3Breturn%20e.set(i%2C!0)%2Ci%7D%3Bexports.directive%3Dt%3Bconst%20s%3Dt%3D%3E%22function%22%3D%3Dtypeof%20t%26%26e.has(t)%3Bexports.isDirective%3Ds%3B%0A%7D%2C%7B%7D%5D%2C%22ytxR%22%3A%5Bfunction(require%2Cmodule%2Cexports)%20%7B%0A%22use%20strict%22%3BObject.defineProperty(exports%2C%22esModule%22%2C%7Bvalue%3A!0%7D)%2Cexports.removeNodes%3Dexports.reparentNodes%3Dexports.isCEPolyfill%3Dvoid%200%3Bconst%20e%3D%22undefined%22!%3Dtypeof%20window%26%26null!%3Dwindow.customElements%26%26void%200!%3D%3Dwindow.customElements.polyfillWrapFlushCallback%3Bexports.isCEPolyfill%3De%3Bconst%20o%3D(e%2Co%2Cl%3Dnull%2Cs%3Dnull)%3D%3E%7Bfor(%3Bo!%3D%3Dl%3B)%7Bconst%20l%3Do.nextSibling%3Be.insertBefore(o%2Cs)%2Co%3Dl%7D%7D%3Bexports.reparentNodes%3Do%3Bconst%20l%3D(e%2Co%2Cl%3Dnull)%3D%3E%7Bfor(%3Bo!%3D%3Dl%3B)%7Bconst%20l%3Do.nextSibling%3Be.removeChild(o)%2Co%3Dl%7D%7D%3Bexports.removeNodes%3Dl%3B%0A%7D%2C%7B%7D%5D%2C%22pnLb%22%3A%5Bfunction(require%2Cmodule%2Cexports)%20%7B%0A%22use%20strict%22%3BObject.defineProperty(exports%2C%22esModule%22%2C%7Bvalue%3A!0%7D)%2Cexports.nothing%3Dexports.noChange%3Dvoid%200%3Bconst%20e%3D%7B%7D%3Bexports.noChange%3De%3Bconst%20o%3D%7B%7D%3Bexports.nothing%3Do%3B%0A%7D%2C%7B%7D%5D%2C%22Av0K%22%3A%5Bfunction(require%2Cmodule%2Cexports)%20%7B%0A%22use%20strict%22%3BObject.defineProperty(exports%2C%22esModule%22%2C%7Bvalue%3A!0%7D)%2Cexports.lastAttributeNameRegex%3Dexports.createMarker%3Dexports.isTemplatePartActive%3Dexports.Template%3Dexports.boundAttributeSuffix%3Dexports.markerRegex%3Dexports.nodeMarker%3Dexports.marker%3Dvoid%200%3Bconst%20e%3D%60%7B%7Blit-%24%7BString(Math.random()).slice(2)%7D%7D%7D%60%3Bexports.marker%3De%3Bconst%20t%3D%60%5Cx3c!--%24%7Be%7D--%5Cx3e%60%3Bexports.nodeMarker%3Dt%3Bconst%20r%3Dnew%20RegExp(%60%24%7Be%7D%7C%24%7Bt%7D%60)%3Bexports.markerRegex%3Dr%3Bconst%20s%3D%22%24lit%24%22%3Bexports.boundAttributeSuffix%3Ds%3Bclass%20o%7Bconstructor(t%2Co)%7Bthis.parts%3D%5B%5D%2Cthis.element%3Do%3Bconst%20i%3D%5B%5D%2Cl%3D%5B%5D%2Cp%3Ddocument.createTreeWalker(o.content%2C133%2Cnull%2C!1)%3Blet%20c%3D0%2Cd%3D-1%2Cu%3D0%3Bconst%7Bstrings%3Af%2Cvalues%3A%7Blength%3Ah%7D%7D%3Dt%3Bfor(%3Bu%3Ch%3B)%7Bconst%20t%3Dp.nextNode()%3Bif(null!%3D%3Dt)%7Bif(d%2B%2B%2C1%3D%3D%3Dt.nodeType)%7Bif(t.hasAttributes())%7Bconst%20e%3Dt.attributes%2C%7Blength%3Ao%7D%3De%3Blet%20i%3D0%3Bfor(let%20t%3D0%3Bt%3Co%3Bt%2B%2B)n(e%5Bt%5D.name%2Cs)%26%26i%2B%2B%3Bfor(%3Bi--%20%3E0%3B)%7Bconst%20e%3Df%5Bu%5D%2Co%3Dx.exec(e)%5B2%5D%2Cn%3Do.toLowerCase()%2Bs%2Ci%3Dt.getAttribute(n)%3Bt.removeAttribute(n)%3Bconst%20a%3Di.split(r)%3Bthis.parts.push(%7Btype%3A%22attribute%22%2Cindex%3Ad%2Cname%3Ao%2Cstrings%3Aa%7D)%2Cu%2B%3Da.length-1%7D%7D%22TEMPLATE%22%3D%3D%3Dt.tagName%26%26(l.push(t)%2Cp.currentNode%3Dt.content)%7Delse%20if(3%3D%3D%3Dt.nodeType)%7Bconst%20o%3Dt.data%3Bif(o.indexOf(e)%3E%3D0)%7Bconst%20e%3Dt.parentNode%2Cl%3Do.split(r)%2Cp%3Dl.length-1%3Bfor(let%20r%3D0%3Br%3Cp%3Br%2B%2B)%7Blet%20o%2Ci%3Dl%5Br%5D%3Bif(%22%22%3D%3D%3Di)o%3Da()%3Belse%7Bconst%20e%3Dx.exec(i)%3Bnull!%3

  4. plugin:obsidian-argdown-plugin:17586 Deprecated as of 10.7.0. highlight(lang, code, ...args) has been deprecated.

  5. plugin:obsidian-argdown-plugin:17586 Deprecated as of 10.7.0. Please use highlight(code, options) instead. https://github.com/highlightjs/highlight.js/issues/2277

amdecker commented 1 year ago

Could you please send step-by-step instructions to replicate this error? Let me know if the plugin still does not work if you uninstall and reinstall the plugin and uninstall and reinstall Obsidian.