Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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

Open
1 task done
SandipKurmi opened this issue Nov 14, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@SandipKurmi
Copy link

SandipKurmi commented Nov 14, 2023

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:

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:

  1. Navigate to the web app.
  2. Attempt to add a code snippet.
  3. 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:

![Screenshot 2023-11-14 103558](https://github.com/webdevcody/code-racer/assets/88388131/62213377-a810-415d-bcfd-43021df7ed4d)
![Screenshot 2023-11-14 103608](https://github.com/webdevcody/code-racer/assets/88388131/4b27b208-390f-43ad-ad6d-4afd9a09ab9d)
![Screenshot 2023-11-14 104100](https://github.com/webdevcody/code-racer/assets/88388131/4266dda0-e121-4359-849a-4f6e76f878a5)

Environment:

  • Operating System: [Windows 11]
  • Browser: [Chrome Version 119.0.6045.124 (Official Build) (64-bit)]
  • Web App Version: [Web App Version, if available]

(optional) What browsers are you seeing the problem on?

Chrome

Code of Conduct

  • I agree to follow this project's Code of Conduct
@SandipKurmi SandipKurmi added the bug Something isn't working label Nov 14, 2023
@SandipKurmi SandipKurmi changed the title [BUG]: 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"}} [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. Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant