Error when trying to remove code component from library
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3567260. --> Reported by: [attilatilman](https://www.drupal.org/user/3528404) Related to !475 !468 >>> TYPE > <div><p>When attempting to remove a JS component from the library, the following error is shown :</p> <h2>UI message:</h2> <p>Failed to remove from components An error (HTTP PARSING_ERROR) occurred while removing from components. Please check the browser console for more details.</p> <h2>Console error:</h2> <p>error: "SyntaxError: Unexpected token '&lt;', \" is not valid JSON"</p> <p>originalStatus: 404<br> status: "PARSING_ERROR"<br> data: "\n </p><h2>Steps to Reproduce:</h2> <p><em>Note this only happens when trying to remove the component from the "library" panel. It works when doing it from the "Code" panel.</em></p> <ol> <li>Create a JS component.</li> <li>Add it to the library.</li> <li>Attempt to remove the JS component from the "Library" panel by clicking on "Remove from components".</li> <li>Observe that the error message appears, and check the console for the parsing and 404 errors.</li> </ol>
issue