[BUG]: When attempting to add a code snippet to the web app, I encountered an error related to formatting, specifically mentioning the absence of the 'prettier-plugin-java' module. #730
When attempting to add a code snippet to the web app, I encountered an error related to formatting, specifically mentioning the absence of the 'prettier-plugin-java' module.
Error Message:
0: ["$@1", ["-EGmRfE_nEn0T6QfeYXI0", null]]
1: {
"failure": {
"reason": "Failed to format snippet, make sure language syntax is correct.\nError: Cannot find module 'prettier-plugin-java'\nRequire stack:\n- /var/task/node_modules/prettier/index.js\n- /var/task/packages/app/.next/server/app/add-snippet/page.js\n- /var/task/node_modules/next/dist/server/require.js\n- /var/task/node_modules/next/dist/server/next-server.js\n- /var/task/packages/app/___next_launcher.cjs"
}
}
Steps to Reproduce:
Navigate to the web app.
Attempt to add a code snippet.
Observe the error message.
Expected Behavior:
Code snippets should be added without encountering formatting errors related to the 'prettier-plugin-java' module.
Screenshots:
Include any relevant screenshots or images that help illustrate the issue. You can use the following Markdown for an image tag:
Description
Issue Description
Summary:
When attempting to add a code snippet to the web app, I encountered an error related to formatting, specifically mentioning the absence of the 'prettier-plugin-java' module.
Error Message:
Steps to Reproduce:
Expected Behavior:
Code snippets should be added without encountering formatting errors related to the 'prettier-plugin-java' module.
Screenshots:
Include any relevant screenshots or images that help illustrate the issue. You can use the following Markdown for an image tag:
Environment:
(optional) What browsers are you seeing the problem on?
Chrome
Code of Conduct