react icon indicating copy to clipboard operation
react copied to clipboard

[BUG] Uncaught TypeError: Cannot read property 'getUndoManager' of null at w.endOperation (ace.js:1)

Open AgileFlex opened this issue 5 years ago • 6 comments

Environment

Please provide as many details as you can: Uncaught TypeError: Cannot read property 'getUndoManager' of null at w.endOperation (ace.js:1)

  • Hosting type
    • [x] Form.io
    • [ ] Local deployment
      • Version:
  • Formio.js version: "formiojs": "^4.9.5", | "react-formio": "^4.3.0",
  • Frontend framework: "react": "^16.12.0"
  • Browser: Chrome
  • Browser version: 80.0.3987.149

Steps to Reproduce

  1. Drag a component into the Formio Builder

Expected behavior

Observed behavior

Example

If possible, please provide a screenshot, live example (via JSFiddle or similar), and/or example code to help demonstrate the issue.

For code or form JSON, please enclose in a code block:

// your code here

AgileFlex avatar Mar 24 '20 12:03 AgileFlex

This looks like a crash in the Ace editor. Can you see if it is a problem there instead of our platform?

randallknutson avatar Mar 24 '20 14:03 randallknutson

Looks like things may have changed recently with ace. We may need to look into what is wrong. This is another issue with ace just reported. https://github.com/formio/formio.js/issues/2569

randallknutson avatar Mar 24 '20 14:03 randallknutson

Hello @randallknutson

The issue might be related to the fact that one js file is not loaded from the CDN:

ace.js:1 GET https://cdn.form.io/ace/1.4.8/theme-snow.js net::ERR_ABORTED 404

Opening the URL above we see:

  • Code: NoSuchKey
  • Message: The specified key does not exist.
  • Key: ace/1.4.8/theme-snow.js
  • RequestId: AF392064C6DBF8AC
  • HostId: ZegNZjSdRygLYkWOYWWYD05nUJX8tDRqOFWJCcB6dmwfpGNb62GKqAHsFbVyUNNaFUWt7y3nOKQ=

Hopefully it helps you pinpoint the issue.

On the first load everything works fine. The issue can be replicated on dragging fields on the FormBuilder.

Thank you.

AgileFlex avatar Mar 24 '20 14:03 AgileFlex

theme-snow is not a valid theme for Ace. I believe this is probably caused by default wysiwyg settings (which were originally for the Quill editor) are somehow getting applied to Ace editor.

travist avatar Mar 24 '20 21:03 travist

@randallknutson @travist Thanks for investigating this bug. It does affect older versions of form.io too. Any progress on this one?

AgileFlex avatar Apr 01 '20 08:04 AgileFlex

@AgileFlexAgency This item is currently being worked on by our dev team. We are hoping to have a fix out by the end of this week or early next week.

jeriah-formio avatar Apr 01 '20 14:04 jeriah-formio

I am closing the issue as it was created too long ago and there are no new comments here. I hope it was resolved. If not, please reopen it. Thanks!

TanyaGashtold avatar Aug 31 '23 13:08 TanyaGashtold