Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Keep getting issues with prettier #7

Open
sebastialonso opened this issue Jan 14, 2020 · 1 comment
Open

Keep getting issues with prettier #7

sebastialonso opened this issue Jan 14, 2020 · 1 comment

Comments

@sebastialonso
Copy link

sebastialonso commented Jan 14, 2020

This comes up at the VS code console, and that's it.

[Info  - 20:01:17] Failed to load plugin 'prettier' declared in 'code/project/.eslintrc.json': Cannot find module 'eslint-plugin-prettier' Require stack: - frontend/__placeholder__.js Referenced from: frontend/code/project/.eslintrc.json

The package eslint-plugin-prettier was installed by the same script.

I thought this script was supposed to take care of everything, :/

@paulolramos
Copy link
Owner

I'm not sure why you got this error. I just tested the script in a new CRA project and everything works fine.

The .eslintrc.json file should pick up the eslint-plugin-prettier module if it was downloaded correctly.

Perhaps it has to do with how your prettier is set up in VS Code?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants