You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, great theme. When I went to set it up right now I got this error when trying to commit:
✔ Preparing lint-staged...
❯ Running tasks for staged files...
❯ package.json — 74 files
❯ * — 74 files
✖ prettier --plugin-search-dir=. --write [FAILED]
↓ Skipped because of errors from tasks. [SKIPPED]
✔ Reverting to original state because of errors...
✔ Cleaning up temporary files...
✖ prettier --plugin-search-dir=. --write:
[error] No parser could be inferred for file: public/assets/dev.svg
[error] No parser could be inferred for file: public/assets/logo.png
[error] No parser could be inferred for file: public/assets/logo.svg
[error] No parser could be inferred for file: public/astropaper-og.jpg
[error] No parser could be inferred for file: public/favicon.svg
[error] No parser could be inferred for file: public/robots.txt
I used npm create astro@latest -- --template satnaing/astro-paper because I'm on NPM 9.1.2. I installed into my current working directory (which was empty). I ran npm install after the install. Then I ran git add . and git commit -m 'Init AstroPaper blog' and that's when I got this error.
The text was updated successfully, but these errors were encountered:
If you do not need to run prettier on public, you can simply remove it from the exceptions listed in .prettierignore. Otherwise, you can add in .prettierignore explicit ignore rules for extensions like svg or jpg. See this for more: #52 (comment)
Thanks again for the great theme. I think my solution was to just rip out all the prettier stuff, which I did before even filing this bug. I just figured we should get this documented.
Hi, great theme. When I went to set it up right now I got this error when trying to commit:
I used
npm create astro@latest -- --template satnaing/astro-paper
because I'm on NPM 9.1.2. I installed into my current working directory (which was empty). I rannpm install
after the install. Then I rangit add .
andgit commit -m 'Init AstroPaper blog'
and that's when I got this error.The text was updated successfully, but these errors were encountered: