Skip to content

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

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

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

Triggered via pull request July 17, 2024 03:19
Status Failure
Total duration 4m 26s
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 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/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 creates a interactive message with dynamic content". 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 renders quick reply in edit mode and changes language". 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/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/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 shows error if clicked on translation without filling details". 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 translates a new template". 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 translates an already exisiting template". 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
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/
CI
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/