question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When Compiling, receiving prettier/prettier error

See original GitHub issue

My program compiles fully when running npm start, however when running npm run build to create a production build,

I’m receiving the following error, this is straight from a git clone, only change to code is the .env file name and moralis url and app id

I tried deleting to file to debug and it just replaces the same error with other files.

Please help where possible.

PC MINGW64 ~/ethereum-boilerplate (main) $ npm run build

ethereum-boilerplate@0.1.0 build react-app-rewired build

Creating an optimized production build… Failed to compile.

src\service-worker.js Line 1:43: Delete prettier/prettier Line 2:1: Delete prettier/prettier Line 3:42: Delete prettier/prettier Line 4:63: Delete prettier/prettier Line 5:63: Delete prettier/prettier Line 6:20: Delete prettier/prettier Line 7:62: Delete prettier/prettier Line 8:63: Delete prettier/prettier Line 9:1: Delete prettier/prettier Line 10:45: Delete prettier/prettier Line 11:55: Delete prettier/prettier Line 12:80: Delete prettier/prettier Line 13:49: Delete prettier/prettier Line 14:59: Delete prettier/prettier Line 15:1: Delete prettier/prettier Line 16:16: Delete prettier/prettier Line 17:1: Delete prettier/prettier Line 18:63: Delete prettier/prettier Line 19:61: Delete prettier/prettier Line 20:72: Delete prettier/prettier Line 21:70: Delete prettier/prettier Line 22:38: Delete prettier/prettier Line 23:1: Delete prettier/prettier Line 24:67: Delete prettier/prettier Line 25:59: Delete prettier/prettier Line 26:73: Delete prettier/prettier Line 27:60: Delete prettier/prettier Line 28:15: Delete prettier/prettier Line 29:73: Delete prettier/prettier Line 30:26: Delete prettier/prettier Line 31:41: Delete prettier/prettier Line 32:39: Delete prettier/prettier Line 33:20: Delete prettier/prettier Line 34:53: Delete prettier/prettier Line 35:1: Delete prettier/prettier Line 36:41: Delete prettier/prettier Line 37:20: Delete prettier/prettier etc etc etc etc

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
alexnguyennzcommented, May 31, 2022

You can add "endOfLine": "auto" to your project’s .prettierrc file. That should get rid of these.

0reactions
Y0moocommented, Aug 26, 2022

Closing since we released V2

Read more comments on GitHub >

github_iconTop Results From Across the Web

how to get rid of prettier/prettier error - Stack Overflow
I deployed 5 minutes before this without any issues. Error: Command failed with exit code 1: node_modules/.bin/next build warn - ...
Read more >
Ignoring Code - Prettier
Use .prettierignore to ignore (i.e. not reformat) certain files and folders completely. Use “prettier-ignore” comments to ignore parts of files.
Read more >
Linting in TypeScript using ESLint and Prettier - LogRocket Blog
Integrate Prettier with ESLint to automate type-checking in your TypeScript code and ensure that the code has no bugs.
Read more >
How to Prevent Accidental Code Errors with ESLint, Prettier ...
Make Prettier work with ESLint and Husky to protect the code of your project against accidental errors by using proper code analysis and...
Read more >
How to use Prettier with ESLint and TypeScript in VSCode
ESLint can kind of format code too, but it's mostly intended to sniff out when we're not following the mandated coding conventions. Prettier...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found