Error messages from code ChatGPT wrote
The exact messages Chrome, Tampermonkey and Discord show when ChatGPT’s code was written for an older version. Each page says why it happens and what fixes it, with sources. You can also paste the error into the box on any rightsocket page.
Chrome extension
- Manifest version 2 is deprecated
Manifest version 2 is deprecated, and support will be removed in 2024. - Service worker registration failed. Status code: 15
Service worker registration failed. Status code: 15 - Manifest is not valid JSON
Manifest is not valid JSON. Line: 1, column: 1, Syntax error. - Could not load icon specified in the manifest
Could not load icon 'icon.png' specified in 'icons'. - Refused to execute inline script (Content Security Policy)
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self'". - chrome.browserAction is undefined (Manifest V3)
Uncaught TypeError: Cannot read properties of undefined (reading 'onClicked') - 'browser_action' requires manifest version of 2 or lower
'browser_action' requires manifest version of 2 or lower. - 'webRequestBlocking' requires manifest version of 2 or lower
'webRequestBlocking' requires manifest version of 2 or lower. - Permission is unknown or URL pattern is malformed
Permission '<all_urls>' is unknown or URL pattern is malformed. - Invalid value for 'web_accessible_resources[0]'
Invalid value for 'web_accessible_resources[0]'. Could not load manifest.
Userscript
- Userscript not running: turn on Allow User Scripts
Please enable developer mode to allow userscript injection. - GM_addStyle is not defined (or another GM_ function)
ReferenceError: GM_addStyle is not defined - Tampermonkey says no script is running on this page
No script is running
Discord bot
- Cannot read properties of undefined (reading 'FLAGS')
TypeError: Cannot read properties of undefined (reading 'FLAGS') - MessageEmbed is not a constructor
TypeError: MessageEmbed is not a constructor - Valid intents must be provided for the Client
TypeError [ClientMissingIntents]: Valid intents must be provided for the Client. - Used disallowed intents
Error: Used disallowed intents - Discord bot is online but doesn’t reply
The message event is deprecated. Use messageCreate instead
What changed since ChatGPT learned: the dated list behind these errors.