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

core._resourcesStateChange is not a function (in core.js) #1191

Closed
wmhartl opened this issue Mar 22, 2023 · 3 comments
Closed

core._resourcesStateChange is not a function (in core.js) #1191

wmhartl opened this issue Mar 22, 2023 · 3 comments

Comments

@wmhartl
Copy link

wmhartl commented Mar 22, 2023

Hello,

I'm getting the following error:

    TypeError: core._resourcesStateChange is not a function

      at _resourcesStateChange (node_modules/suneditor/src/lib/core.js:6190:22)
      at Timeout.task [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:520:19)

This appears related to #1138 but is different and your fix for that doesn't seem to address this error.

This is with suneditor-react 3.4.1 and sunedtior 2.44.3.

Thank you for your help - we love suneditor!

@JiHong88
Copy link
Owner

That fix has not been applied yet.
We will notify you after updating the version.

@JiHong88
Copy link
Owner

The 2.44.4 version has been updated.
Thank you.

@wmhartl
Copy link
Author

wmhartl commented Mar 27, 2023

Hi @JiHong88 thank you for your efforts. After updating to 2.44.4, we're still seeing this:

core.js:6239 Uncaught TypeError: this._resourcesStateChange is not a function
    at Object.<anonymous> (core.js:6239:22)

Would perhaps checking the value using typeof solve the issue? Something like I see you doing elsewhere in core.js:
if (typeof this._resourcesStateChange === "function") this._resourcesStateChange();

Happy to test out possible solutions if it would be helpful for you.

(I found a thread for this on the suneditor-react side that might be of interest also: mkhstar/suneditor-react#296)

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