Skip to content

[Snyk] Upgrade @lexical/react from 0.13.1 to 0.16.0 #4258

[Snyk] Upgrade @lexical/react from 0.13.1 to 0.16.0

[Snyk] Upgrade @lexical/react from 0.13.1 to 0.16.0 #4258

Triggered via pull request July 3, 2024 03:19
Status Failure
Total duration 4m 18s
Artifacts

unit-testing.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
Unhandled error: node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs#L52
Error: Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update() or editorState.read(). ❯ getActiveEditorState node_modules/@lexical/text/node_modules/lexical/Lexical.dev.mjs:7545:13 ❯ $getRoot node_modules/@lexical/text/node_modules/lexical/Lexical.dev.mjs:857:26 ❯ $rootTextContent node_modules/@lexical/text/LexicalText.dev.mjs:24:16 ❯ $isRootTextContentEmpty node_modules/@lexical/text/LexicalText.dev.mjs:46:14 ❯ $canShowPlaceholder node_modules/@lexical/text/LexicalText.dev.mjs:78:8 ❯ node_modules/@lexical/text/LexicalText.dev.mjs:118:16 ❯ readEditorState node_modules/@lexical/react/node_modules/lexical/Lexical.dev.mjs:7752:12 ❯ EditorState.read node_modules/@lexical/react/node_modules/lexical/Lexical.dev.mjs:8859:12 ❯ canShowPlaceholderFromCurrentEditorState node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs:52:61 ❯ node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs:56:70 This error originated in "src/containers/InteractiveMessage/InteractiveMessage.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "it renders empty interactive form". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs#L52
Error: Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update() or editorState.read(). ❯ getActiveEditorState node_modules/@lexical/text/node_modules/lexical/Lexical.dev.mjs:7545:13 ❯ $getRoot node_modules/@lexical/text/node_modules/lexical/Lexical.dev.mjs:857:26 ❯ $rootTextContent node_modules/@lexical/text/LexicalText.dev.mjs:24:16 ❯ $isRootTextContentEmpty node_modules/@lexical/text/LexicalText.dev.mjs:46:14 ❯ $canShowPlaceholder node_modules/@lexical/text/LexicalText.dev.mjs:78:8 ❯ node_modules/@lexical/text/LexicalText.dev.mjs:118:16 ❯ readEditorState node_modules/@lexical/react/node_modules/lexical/Lexical.dev.mjs:7752:12 ❯ EditorState.read node_modules/@lexical/react/node_modules/lexical/Lexical.dev.mjs:8859:12 ❯ canShowPlaceholderFromCurrentEditorState node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs:52:61 ❯ node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs:56:70 This error originated in "src/containers/InteractiveMessage/InteractiveMessage.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "it renders interactive quick reply in edit mode". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs#L52
Error: Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update() or editorState.read(). ❯ getActiveEditorState node_modules/@lexical/text/node_modules/lexical/Lexical.dev.mjs:7545:13 ❯ $getRoot node_modules/@lexical/text/node_modules/lexical/Lexical.dev.mjs:857:26 ❯ $rootTextContent node_modules/@lexical/text/LexicalText.dev.mjs:24:16 ❯ $isRootTextContentEmpty node_modules/@lexical/text/LexicalText.dev.mjs:46:14 ❯ $canShowPlaceholder node_modules/@lexical/text/LexicalText.dev.mjs:78:8 ❯ node_modules/@lexical/text/LexicalText.dev.mjs:118:16 ❯ readEditorState node_modules/@lexical/react/node_modules/lexical/Lexical.dev.mjs:7752:12 ❯ EditorState.read node_modules/@lexical/react/node_modules/lexical/Lexical.dev.mjs:8859:12 ❯ canShowPlaceholderFromCurrentEditorState node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs:52:61 ❯ node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs:56:70 This error originated in "src/containers/InteractiveMessage/InteractiveMessage.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "it renders interactive list in edit mode". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs#L52
Error: Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update() or editorState.read(). ❯ getActiveEditorState node_modules/@lexical/text/node_modules/lexical/Lexical.dev.mjs:7545:13 ❯ $getRoot node_modules/@lexical/text/node_modules/lexical/Lexical.dev.mjs:857:26 ❯ $rootTextContent node_modules/@lexical/text/LexicalText.dev.mjs:24:16 ❯ $isRootTextContentEmpty node_modules/@lexical/text/LexicalText.dev.mjs:46:14 ❯ $canShowPlaceholder node_modules/@lexical/text/LexicalText.dev.mjs:78:8 ❯ node_modules/@lexical/text/LexicalText.dev.mjs:118:16 ❯ readEditorState node_modules/@lexical/react/node_modules/lexical/Lexical.dev.mjs:7752:12 ❯ EditorState.read node_modules/@lexical/react/node_modules/lexical/Lexical.dev.mjs:8859:12 ❯ canShowPlaceholderFromCurrentEditorState node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs:52:61 ❯ node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs:56:70 This error originated in "src/containers/Chat/ChatMessages/ChatMessages.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "Contact: if not cache". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs#L52
Error: Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update() or editorState.read(). ❯ getActiveEditorState node_modules/@lexical/text/node_modules/lexical/Lexical.dev.mjs:7545:13 ❯ $getRoot node_modules/@lexical/text/node_modules/lexical/Lexical.dev.mjs:857:26 ❯ $rootTextContent node_modules/@lexical/text/LexicalText.dev.mjs:24:16 ❯ $isRootTextContentEmpty node_modules/@lexical/text/LexicalText.dev.mjs:46:14 ❯ $canShowPlaceholder node_modules/@lexical/text/LexicalText.dev.mjs:78:8 ❯ node_modules/@lexical/text/LexicalText.dev.mjs:118:16 ❯ readEditorState node_modules/@lexical/react/node_modules/lexical/Lexical.dev.mjs:7752:12 ❯ EditorState.read node_modules/@lexical/react/node_modules/lexical/Lexical.dev.mjs:8859:12 ❯ canShowPlaceholderFromCurrentEditorState node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs:52:61 ❯ node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs:56:70 This error originated in "src/containers/InteractiveMessage/InteractiveMessage.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "it validates url". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs#L52
Error: Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update() or editorState.read(). ❯ getActiveEditorState node_modules/@lexical/text/node_modules/lexical/Lexical.dev.mjs:7545:13 ❯ $getRoot node_modules/@lexical/text/node_modules/lexical/Lexical.dev.mjs:857:26 ❯ $rootTextContent node_modules/@lexical/text/LexicalText.dev.mjs:24:16 ❯ $isRootTextContentEmpty node_modules/@lexical/text/LexicalText.dev.mjs:46:14 ❯ $canShowPlaceholder node_modules/@lexical/text/LexicalText.dev.mjs:78:8 ❯ node_modules/@lexical/text/LexicalText.dev.mjs:118:16 ❯ readEditorState node_modules/@lexical/react/node_modules/lexical/Lexical.dev.mjs:7752:12 ❯ EditorState.read node_modules/@lexical/react/node_modules/lexical/Lexical.dev.mjs:8859:12 ❯ canShowPlaceholderFromCurrentEditorState node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs:52:61 ❯ node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs:56:70 This error originated in "src/containers/Template/Form/HSM/HSM.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "HSM form is loaded correctly in edit mode". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs#L52
Error: Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update() or editorState.read(). ❯ getActiveEditorState node_modules/@lexical/text/node_modules/lexical/Lexical.dev.mjs:7545:13 ❯ $getRoot node_modules/@lexical/text/node_modules/lexical/Lexical.dev.mjs:857:26 ❯ $rootTextContent node_modules/@lexical/text/LexicalText.dev.mjs:24:16 ❯ $isRootTextContentEmpty node_modules/@lexical/text/LexicalText.dev.mjs:46:14 ❯ $canShowPlaceholder node_modules/@lexical/text/LexicalText.dev.mjs:78:8 ❯ node_modules/@lexical/text/LexicalText.dev.mjs:118:16 ❯ readEditorState node_modules/@lexical/react/node_modules/lexical/Lexical.dev.mjs:7752:12 ❯ EditorState.read node_modules/@lexical/react/node_modules/lexical/Lexical.dev.mjs:8859:12 ❯ canShowPlaceholderFromCurrentEditorState node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs:52:61 ❯ node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs:56:70 This error originated in "src/containers/InteractiveMessage/InteractiveMessage.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "it renders copy interactive quick reply message". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs#L52
Error: Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update() or editorState.read(). ❯ getActiveEditorState node_modules/@lexical/text/node_modules/lexical/Lexical.dev.mjs:7545:13 ❯ $getRoot node_modules/@lexical/text/node_modules/lexical/Lexical.dev.mjs:857:26 ❯ $rootTextContent node_modules/@lexical/text/LexicalText.dev.mjs:24:16 ❯ $isRootTextContentEmpty node_modules/@lexical/text/LexicalText.dev.mjs:46:14 ❯ $canShowPlaceholder node_modules/@lexical/text/LexicalText.dev.mjs:78:8 ❯ node_modules/@lexical/text/LexicalText.dev.mjs:118:16 ❯ readEditorState node_modules/@lexical/react/node_modules/lexical/Lexical.dev.mjs:7752:12 ❯ EditorState.read node_modules/@lexical/react/node_modules/lexical/Lexical.dev.mjs:8859:12 ❯ canShowPlaceholderFromCurrentEditorState node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs:52:61 ❯ node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs:56:70 This error originated in "src/containers/Template/Form/HSM/HSM.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "check for validations for the HSM form". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs#L52
Error: Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update() or editorState.read(). ❯ getActiveEditorState node_modules/@lexical/text/node_modules/lexical/Lexical.dev.mjs:7545:13 ❯ $getRoot node_modules/@lexical/text/node_modules/lexical/Lexical.dev.mjs:857:26 ❯ $rootTextContent node_modules/@lexical/text/LexicalText.dev.mjs:24:16 ❯ $isRootTextContentEmpty node_modules/@lexical/text/LexicalText.dev.mjs:46:14 ❯ $canShowPlaceholder node_modules/@lexical/text/LexicalText.dev.mjs:78:8 ❯ node_modules/@lexical/text/LexicalText.dev.mjs:118:16 ❯ readEditorState node_modules/@lexical/react/node_modules/lexical/Lexical.dev.mjs:7752:12 ❯ EditorState.read node_modules/@lexical/react/node_modules/lexical/Lexical.dev.mjs:8859:12 ❯ canShowPlaceholderFromCurrentEditorState node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs:52:61 ❯ node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs:56:70 This error originated in "src/containers/InteractiveMessage/InteractiveMessage.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "it renders empty location request message". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs#L52
Error: Unable to find an active editor state. State helpers or node methods can only be used synchronously during the callback of editor.update() or editorState.read(). ❯ getActiveEditorState node_modules/@lexical/text/node_modules/lexical/Lexical.dev.mjs:7545:13 ❯ $getRoot node_modules/@lexical/text/node_modules/lexical/Lexical.dev.mjs:857:26 ❯ $rootTextContent node_modules/@lexical/text/LexicalText.dev.mjs:24:16 ❯ $isRootTextContentEmpty node_modules/@lexical/text/LexicalText.dev.mjs:46:14 ❯ $canShowPlaceholder node_modules/@lexical/text/LexicalText.dev.mjs:78:8 ❯ node_modules/@lexical/text/LexicalText.dev.mjs:118:16 ❯ readEditorState node_modules/@lexical/react/node_modules/lexical/Lexical.dev.mjs:7752:12 ❯ EditorState.read node_modules/@lexical/react/node_modules/lexical/Lexical.dev.mjs:8859:12 ❯ canShowPlaceholderFromCurrentEditorState node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs:52:61 ❯ node_modules/@lexical/react/LexicalPlainTextPlugin.dev.mjs:56:70 This error originated in "src/containers/Template/Form/HSM/HSM.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "it should create a template message". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
CI
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
CI
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/