Skip to content

Uncaught TypeError: e.match is not a function #242

@brentonv

Description

@brentonv

Hi Zavy I've come across an issue with version 1.0.75

When I run with PHP 8.3.14 self hosted it works fine, but when running with PHP 8.2.25 from infinityfree webhost the markdown editor fails to load with error:

easymde.min.js:9403 Uncaught TypeError: e.match is not a function
    at Object.w [as text] (easymde.min.js:9403:31)
    at Object.k (easymde.min.js:9407:35)
    at Object.token (easymde.min.js:9714:38)
    at Object.token (easymde.min.js:364:68)
    at gt (easymde.min.js:1704:35)
    at bt (easymde.min.js:1777:44)
    at dt (easymde.min.js:1603:21)
    at ht (easymde.min.js:1645:33)
    at Yt (easymde.min.js:2090:34)
    at hn (easymde.min.js:2331:32)
    at vn (easymde.min.js:2396:29)
    at easymde.min.js:3933:41
    at ai (easymde.min.js:3940:22)
    at Kr (easymde.min.js:3670:56)
    at easymde.min.js:3640:33
    at easymde.min.js:3647:26
    at Vr.t (easymde.min.js:3631:33)
    at Vr (easymde.min.js:3633:22)
    at new Aa (easymde.min.js:7276:21)
    at Aa (easymde.min.js:7076:32)
    at Aa.fromTextArea (easymde.min.js:9045:29)
    at ae.render (easymde.min.js:14197:41)
    at new ae (easymde.min.js:14046:22)
    at editor.js:106:17

Also note the following error which shows in all hosting including https://www.wikidocs.app

DevTools failed to load source map: Could not load content for https://www.wikidocs.app/helpers/mermaid-9.4.3/mermaid.min.js.map: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions