Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
brentonv opened this issue Feb 28, 2025 · 3 comments
Open

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

brentonv opened this issue Feb 28, 2025 · 3 comments

Comments

@brentonv
Copy link

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

@brentonv
Copy link
Author

I tested replacing easymde v2.16.1 with the latest version and this resolves the issue, so could you please update the helpers

@Zavy86
Copy link
Owner

Zavy86 commented Feb 28, 2025

hi, if you have already done it can you open a pull request?

@brentonv
Copy link
Author

hi, if you have already done it can you open a pull request?

Sorry mate I have no idea how to use git 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants